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
- Lines: 9
- Date:
Tue Oct 12 10:00:58 1999
- Orig file:
v2.3.21/linux/fs/proc/proc_devtree.c
- Orig date:
Sat Jun 26 12:04:40 1999
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)