scsi: aacraid: error: testing array offset 'bus' after use
authorNikola Pajkovsky <npajkovsky@suse.cz>
Wed, 13 Sep 2017 08:46:17 +0000 (10:46 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 16 Sep 2017 01:46:07 +0000 (21:46 -0400)
commit4cb433e856bce5974ea035181cc8eb406496dccc
tree8819884b3454c09cea86c46a3097ddd66b781bfb
parent5c756065e47dc3e84b00577bd109f0a8e69903d7
scsi: aacraid: error: testing array offset 'bus' after use

Fix possible indexing array of bound for &aac->hba_map[bus][cid], where
bus and cid boundary check happens later.

Fixes: 0d643ff3c353 ("scsi: aacraid: use aac_tmf_callback for reset fib")
Signed-off-by: Nikola Pajkovsky <npajkovsky@suse.cz>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/linit.c