From: FUJITA Tomonori Date: Tue, 2 Sep 2008 07:20:20 +0000 (+0900) Subject: sg: set dxferp to NULL for READ with the older SG interface X-Git-Tag: v2.6.28-rc1~733^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad7f01e61bf737fe8a3740d803f000db57ecac6;p=pandora-kernel.git sg: set dxferp to NULL for READ with the older SG interface With the older SG interface, we don't know a user-space address to trasfer data when executing a SCSI command. So we can't pass a user-space address to blk_rq_map_user. This patch fixes sg to pass a NULL user-space address to blk_rq_map_user so that it just sets up a request and bios with page frames propely without data transfer. Signed-off-by: FUJITA Tomonori Signed-off-by: Jens Axboe --- Reading git-diff-tree failed