patch-2.4.0-test4 linux/drivers/usb/hub.c

Next file: linux/drivers/usb/joydev.c
Previous file: linux/drivers/usb/evdev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/drivers/usb/hub.c linux/drivers/usb/hub.c
@@ -588,6 +588,8 @@
 	 * so get rid of all our resources
 	 */
 	exit_files(current);  /* daemonize doesn't do exit_files */
+	current->files = init_task.files;
+	atomic_inc(&current->files->count);
 	daemonize();
 
 	/* Setup a nice name */

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