]> git.karo-electronics.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:30:48 +0000 (03:30 +0100)
commit937882c09a3f906f6d70e0098715b28473d64709
treea534a0a2ef3a963c2a96941bc24eb77c66b91bdf
parent5a849a302ad47b4a5f8c7ba6e53272496f5ba0cd
cciss: fix handling of protocol error

commit 2453f5f992717251cfadab6184fbb3ec2f2e8b40 upstream.

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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/block/cciss_scsi.c