scsi_common: do not clobber fixed sense information
authorHannes Reinecke <hare@suse.de>
Fri, 18 Mar 2016 13:55:38 +0000 (14:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:09:05 +0000 (09:09 -0700)
commit9835db39bb8151cf4471a792a878318c8d07bf4d
treeb1b9a5fb3bfee8007d0efd6e76034d280a7a309e
parent4cd4ebbdf533ed316ce377b66ae508cc6d1d0162
scsi_common: do not clobber fixed sense information

commit ba08311647892cc7912de74525fd78416caf544a upstream.

For fixed sense the information field is 32 bits, to we need to truncate
the information field to avoid clobbering the sense code.

Fixes: a1524f226a02 ("libata-eh: Set 'information' field for autosense")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_common.c