diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-04-03 17:35:42 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 16:38:11 +0200 |
commit | e7ee4cc04b058d1eae9c1ac359031301b1798e3f (patch) | |
tree | 3edc28a8f84a84b9893813e047b805e2915528c5 /drivers/scsi/lpfc/lpfc_mem.c | |
parent | [SCSI] sr: report more accurate drive status after closing the tray. (diff) | |
download | linux-e7ee4cc04b058d1eae9c1ac359031301b1798e3f.tar.xz linux-e7ee4cc04b058d1eae9c1ac359031301b1798e3f.zip |
[SCSI] sg: return EFAULT for an invalid user address
blk_rq_unmap_user() returns EFAULT if a program passes an invalid
address to kernel (the kernel fails to copy data to user space). sg
needs to pass the returned value to user space instead of ignoring
it. Before the block layer conversion, sg returns EFAULT
properly. This restores the old behavior.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mem.c')
0 files changed, 0 insertions, 0 deletions