From: Mark Lord Date: Fri, 2 Jan 2009 07:48:24 +0000 (-0500) Subject: USB: fix minor nit in usbfs checking X-Git-Tag: v2.6.29-rc1~182^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed0c7720d23d5c82787e17cb02b28ca9eb11853d;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index c85e29381a8..26fece124e0 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);