summaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg/nop-usb-xceiv.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2009-06-29 11:04:54 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-07-12 15:16:41 -0700
commit9180135bc80ab11199d482b6111e23f74d65af4a (patch)
tree570d7079252a6a7b821e42383913ec0bfa09e4eb /drivers/usb/otg/nop-usb-xceiv.c
parentec6d67e39f5638c792eb7490bf32586ccb9d8005 (diff)
downloadlinux-9180135bc80ab11199d482b6111e23f74d65af4a.tar.gz
linux-9180135bc80ab11199d482b6111e23f74d65af4a.tar.bz2
linux-9180135bc80ab11199d482b6111e23f74d65af4a.zip
USB: handle zero-length usbfs submissions correctly
This patch (as1262) fixes a bug in usbfs: It refuses to accept zero-length transfers, and it insists that the buffer pointer be valid even if there is no data being transferred. The patch also consolidates a bunch of repetitive access_ok() checks into a single check, which incidentally fixes the lack of such a check for Isochronous URBs. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/otg/nop-usb-xceiv.c')
0 files changed, 0 insertions, 0 deletions