From: Alan Stern Date: Mon, 29 Jun 2009 15:04:54 +0000 (-0400) Subject: USB: handle zero-length usbfs submissions correctly X-Git-Tag: v2.6.27.29~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a9b8d3bae0dfe231e244e3b1952886248bd683e;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed