Re: [PATCH 06/20] scsi: stop decoding if scsi_normalize_sense() fails

2014-09-05 Thread Christoph Hellwig
On Wed, Sep 03, 2014 at 12:06:01PM +0200, Hannes Reinecke wrote: > 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. This description sti

[PATCH 06/20] scsi: stop decoding if scsi_normalize_sense() fails

2014-09-03 Thread Hannes Reinecke
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 --- drivers/scsi/constants.c | 32 ++