]> Pileus Git - ~andy/linux/commit
[SCSI] tgt: fix scsi command leak
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sat, 3 Mar 2007 00:55:55 +0000 (09:55 +0900)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 11 Mar 2007 16:39:39 +0000 (11:39 -0500)
commite8f8248cbadcd8cb1b737fc57a01bccca4fb7aec
treec419893a73f1c4392e9d1acbff3bf7dfc56c5df0
parentbc7e380a6a4c94f79a49c36bdb28062a750b3c2b
[SCSI] tgt: fix scsi command leak

The failure to map user-space pages leads to scsi command leak. It can
happens mostly because of user-space daemon bugs (or OOM). This patch
makes tgt just notify a LLD of the failure with sense when
blk_rq_map_user() fails.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_tgt_lib.c