summaryrefslogtreecommitdiffstats
path: root/drivers/usb/hub.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/hub.c')
-rw-r--r--drivers/usb/hub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/hub.c b/drivers/usb/hub.c
index 75794f3ca..71d6aabb9 100644
--- a/drivers/usb/hub.c
+++ b/drivers/usb/hub.c
@@ -588,6 +588,8 @@ static int usb_hub_thread(void *__hub)
* 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 */