patch-1.3.35 linux/kernel/module.c

Next file: linux/scripts/Configure
Previous file: linux/include/linux/sjcd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.34/linux/kernel/module.c linux/kernel/module.c
@@ -529,6 +529,8 @@
 		if (p - buf > 4096 - 100)
 			break;			/* avoid overflowing buffer */
 		q = mp->name;
+		if (*q == '\0' && mp->size == 0 && mp->ref == NULL)
+			continue; /* don't list modules for kernel syms */
 		i = 20;
 		while (*q) {
 			*p++ = *q++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this