From: Alan Stern Date: Wed, 20 Feb 2008 19:15:58 +0000 (-0500) Subject: USB: usb-storage: don't access beyond the end of the sg buffer X-Git-Tag: v2.6.25-rc3~98^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7084191d53b224b953c8e1db525ea6c31aca5fc7;p=pandora-kernel.git USB: usb-storage: don't access beyond the end of the sg buffer This patch (as1035) fixes a bug in usb_stor_access_xfer_buf() (the bug was originally found by Boaz Harrosh): The routine must not attempt to write beyond the end of a scatter-gather list or beyond the number of bytes requested. It also fixes up the formatting of a few comments and similar whitespace issues. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed