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:
Родитель
2caf7fcdb8
Коммит
ed0c7720d2
|
@ -1317,7 +1317,7 @@ static int get_urb32(struct usbdevfs_urb *kurb,
|
||||||
if (__get_user(uptr, &uurb->buffer))
|
if (__get_user(uptr, &uurb->buffer))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
kurb->buffer = compat_ptr(uptr);
|
kurb->buffer = compat_ptr(uptr);
|
||||||
if (__get_user(uptr, &uurb->buffer))
|
if (__get_user(uptr, &uurb->usercontext))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
kurb->usercontext = compat_ptr(uptr);
|
kurb->usercontext = compat_ptr(uptr);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче