]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: stop decoding if scsi_normalize_sense() fails
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:50 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:00 +0000 (11:16 +0100)
commitf9462a17f71d841a18040785b30b31a754fcd19e
treea335422dc13ba030838e0415a2cccb47d27e1ef0
parent3bde1a6fa34f7be19a308b670704f678a4ac14b6
scsi: stop decoding if scsi_normalize_sense() fails

If scsi_normalize_sense() fails we couldn't decode the sense
buffer, and the scsi_sense_hdr fields are invalid.
For those cases we should rather dump the sense buffer
and not try to decode invalid fields.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/constants.c