patch-2.4.20 linux-2.4.20/drivers/usb/inode.c
Next file: linux-2.4.20/drivers/usb/kaweth.c
Previous file: linux-2.4.20/drivers/usb/hub.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Thu Nov 28 15:53:14 2002
- Orig file:
linux-2.4.19/drivers/usb/inode.c
- Orig date:
Fri Aug 2 17:39:45 2002
diff -urN linux-2.4.19/drivers/usb/inode.c linux-2.4.20/drivers/usb/inode.c
@@ -628,6 +628,7 @@
s->s_root = d_alloc_root(root_inode);
if (!s->s_root)
goto out_no_root;
+ lock_kernel();
list_add_tail(&s->u.usbdevfs_sb.slist, &superlist);
for (i = 0; i < NRSPECIAL; i++) {
if (!(inode = iget(s, IROOT+1+i)))
@@ -646,6 +647,7 @@
recurse_new_dev_inode(bus->root_hub, s);
}
up (&usb_bus_list_lock);
+ unlock_kernel();
return s;
out_no_root:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)