]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix SG_IO to return a proper error value
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 13 Apr 2009 18:03:10 +0000 (20:03 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:10:11 +0000 (12:10 +0200)
commit07a8ab7ef4bf06899b0bd1273f88dc44a00c9a1a
treeb37b3402f7eb55e9f899d63faf1e2ec520c0a3c7
parent0c1024ec068e61b50419bc41779fa8489e190491
block: fix SG_IO to return a proper error value

blk_rq_unmap_user() returns -EFAULT if a program passes an invalid
address to kernel. SG_IO path needs to pass the returned value to user
space instead of ignoring it.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/scsi_ioctl.c