]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: fix handling of protocol error
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Fri, 14 Sep 2012 21:35:10 +0000 (16:35 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Sep 2012 09:57:08 +0000 (11:57 +0200)
commit4f01aaf673e2fe86b1221dc2a538e4d71338efde
treef4d48604b3588408cd393d075870cdbd50985b7d
parent0b054b847cb61bf3fb3208cb08196b8c792ba160
cciss: fix handling of protocol error

If a command completes with a status of CMD_PROTOCOL_ERR, this
information should be conveyed to the SCSI mid layer, not dropped
on the floor.  Unlike a similar bug in the hpsa driver, this bug
only affects tape drives and CD and DVD ROM drives in the cciss
driver, and to induce it, you have to disconnect (or damage) a
cable, so it is not a very likely scenario (which would explain
why the bug has gone undetected for the last 10 years.)

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/cciss_scsi.c