Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>


authored by

Mark Lord and committed by
Greg Kroah-Hartman
ed0c7720 2caf7fcd

+1 -1
+1 -1
drivers/usb/core/devio.c
··· 1317 1317 if (__get_user(uptr, &uurb->buffer)) 1318 1318 return -EFAULT; 1319 1319 kurb->buffer = compat_ptr(uptr); 1320 - if (__get_user(uptr, &uurb->buffer)) 1320 + if (__get_user(uptr, &uurb->usercontext)) 1321 1321 return -EFAULT; 1322 1322 kurb->usercontext = compat_ptr(uptr); 1323 1323