1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-26 18:33:19 +02:00
openwrt-xburst/package/busybox/patches/810-lsmod-infinite-loop.patch
jow 12bb1cec17 [package] busybox: avoid infinite loop in lsmod (#4834)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15071 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-29 20:26:45 +00:00

12 lines
345 B
Diff

--- 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)