scsi: aacraid: Fix out of bounds in aac_get_name_resp
authorRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Fri, 4 Aug 2017 10:51:41 +0000 (03:51 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 17 Aug 2017 00:01:31 +0000 (20:01 -0400)
commitc80267324938a5517fd31fa4bbd2d63c564401f9
treeaa4ec116dd65eb4893df36cb2c4fa3d02ceebef0
parent82f0fd06d4a84ff32cc2cf9503764219316ec728
scsi: aacraid: Fix out of bounds in aac_get_name_resp

We terminate the aac_get_name_resp on a byte that is outside the bounds
of the structure. Extend the return response by one byte to remove the
out of bounds reference.

Fixes: b836439faf04 ("aacraid: 4KB sector support")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Carroll <david.carroll@microsemi.com>
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aachba.c
drivers/scsi/aacraid/aacraid.h