Alan Stern 9180135bc8 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>
2009-07-12 15:16:41 -07:00
..
2009-07-12 15:16:38 -07:00
2009-07-12 15:16:38 -07:00
2009-07-12 15:16:38 -07:00
2009-06-11 21:36:11 -04:00
2009-07-12 15:16:40 -07:00
2009-06-15 21:44:41 -07:00
2009-06-15 21:44:49 -07:00