diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-06-29 11:04:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-30 16:06:03 -0700 |
commit | 0a9b8d3bae0dfe231e244e3b1952886248bd683e (patch) | |
tree | a4932d8b867a0c600ef18d2f494f8be51779844e /drivers/block | |
parent | d84b737af8969ff13cf2f1d2942ce50a6d9aa554 (diff) |
USB: handle zero-length usbfs submissions correctly
commit 9180135bc80ab11199d482b6111e23f74d65af4a upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions