Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed0c7720 authored by Mark Lord's avatar Mark Lord Committed by Greg Kroah-Hartman
Browse files

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: default avatarMark Lord <mlord@pobox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2caf7fcd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);