From: Hannes Reinecke Date: Fri, 24 Oct 2014 12:26:50 +0000 (+0200) Subject: scsi: stop decoding if scsi_normalize_sense() fails X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2~1^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=149d18cc2143079ac5fc4e61bc53bb532b8eed26;p=pandora-kernel.git 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 Reviewed-by: Robert Elliott Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed