From: FUJITA Tomonori Date: Fri, 3 Apr 2009 00:12:20 +0000 (+0900) Subject: [SCSI] sg: fix iovec bugs introduced by the block layer conversion X-Git-Tag: v2.6.30-rc1~185^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fdf96b67ac2649cc1ddb29b316a0db11586c6a8;p=pandora-kernel.git [SCSI] sg: fix iovec bugs introduced by the block layer conversion - needs to use copy_from_user for iovec before passing it to blk_rq_map_user_iov(). - before the block layer conversion, if ->dxfer_len and sum of iovec disagrees, the shorter one wins. However, currently sg returns -EINVAL. This restores the old behavior. Signed-off-by: FUJITA Tomonori Acked-by: Douglas Gilbert Cc: stable@kernel.org Signed-off-by: James Bottomley --- Reading git-diff-tree failed