summaryrefslogtreecommitdiff
path: root/package/busybox/patches/810-lsmod-infinite-loop.patch
blob: 8bc8cd0a7668d476ba03cdaef4a22be63ad6694e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -107,7 +107,7 @@
 				continue;
 			} else if (errno != ENOSPC)
 				bb_perror_msg_and_die("module %s: QM_REFS", mn);
-			deps = xrealloc(deps, count);
+			deps = xrealloc(deps, depsize = count);
 		}
 		printf("%-20s%8lu%4ld", mn, info.size, info.usecount);
 		if (info.flags & NEW_MOD_DELETED)