patch-2.3.22 linux/fs/proc/proc_devtree.c

Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/fs/proc/proc_devtree.c linux/fs/proc/proc_devtree.c
@@ -165,7 +165,7 @@
 		 * add a symlink with the name property as its name.
 		 */
 		for (sib = np->child; sib != child; sib = sib->sibling)
-			if (strcmp(sib->name, child->name) == 0)
+			if (sib->name && strcmp(sib->name, child->name) == 0)
 				break;
 		if (sib == child && strncmp(p, child->name, l) != 0) {
 			al = kmalloc(sizeof(struct proc_dir_entry),

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)