aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/devio.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-10-10 19:31:30 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-10 19:31:30 -0400
commitd7dd8a72ab8d305fbe1c4bb571e0633eba3a8d23 (patch)
treeb1df87ccb102bbe4c2402a677d62bc6a0b85282e /drivers/usb/core/devio.c
parent46113830a18847cff8da73005e57bc49c2f95a56 (diff)
Use the new "kill_proc_info_as_uid()" for USB disconnect too
All the same issues - we can't just save the pointer to the thread, we must save the pid/uid/euid combination. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r--drivers/usb/core/devio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 6c35dcbea66..487ff672b10 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -530,7 +530,9 @@ static int usbdev_open(struct inode *inode, struct file *file)
530 INIT_LIST_HEAD(&ps->async_completed); 530 INIT_LIST_HEAD(&ps->async_completed);
531 init_waitqueue_head(&ps->wait); 531 init_waitqueue_head(&ps->wait);
532 ps->discsignr = 0; 532 ps->discsignr = 0;
533 ps->disctask = current; 533 ps->disc_pid = current->pid;
534 ps->disc_uid = current->uid;
535 ps->disc_euid = current->euid;
534 ps->disccontext = NULL; 536 ps->disccontext = NULL;
535 ps->ifclaimed = 0; 537 ps->ifclaimed = 0;
536 wmb(); 538 wmb();