diff options
author | Mark Lord <lkml@rtr.ca> | 2009-01-02 08:48:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 19:00:13 +0100 |
commit | ed0c7720d23d5c82787e17cb02b28ca9eb11853d (patch) | |
tree | 9a948af92e3a13294380165eda8b468a6f41fd1b /drivers/usb/core | |
parent | USB: re-enable interface after driver unbinds (diff) | |
download | linux-ed0c7720d23d5c82787e17cb02b28ca9eb11853d.tar.xz linux-ed0c7720d23d5c82787e17cb02b28ca9eb11853d.zip |
USB: fix minor nit in usbfs checking
One minor nit did show up, though. The patch below
seems to make more sense than the code does without it.
Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/devio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index c85e29381a88..26fece124e0e 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -1317,7 +1317,7 @@ static int get_urb32(struct usbdevfs_urb *kurb, if (__get_user(uptr, &uurb->buffer)) return -EFAULT; kurb->buffer = compat_ptr(uptr); - if (__get_user(uptr, &uurb->buffer)) + if (__get_user(uptr, &uurb->usercontext)) return -EFAULT; kurb->usercontext = compat_ptr(uptr); |