mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 01:10:28 +00:00
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>
This commit is contained in:
parent
2caf7fcdb8
commit
ed0c7720d2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user