]> git.karo-electronics.de Git - linux-beck.git/commit
sg: set dxferp to NULL for READ with the older SG interface
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 2 Sep 2008 07:20:20 +0000 (16:20 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:12 +0000 (08:56 +0200)
commitfad7f01e61bf737fe8a3740d803f000db57ecac6
treed72959e6b5043bf3436f122ebcddb0c8f41d1acf
parent818827669d85b84241696ffef2de485db46b0b5e
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 <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/scsi/sg.c