RE: [PATCH] scsi: aacraid: error: testing array offset 'bus' after use

From: Dave Carroll
Date: Fri Sep 15 2017 - 16:13:33 EST


>
> 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@xxxxxxx>
> ---
> drivers/scsi/aacraid/linit.c | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)

Reviewed-by: Dave Carroll <david.carroll@xxxxxxxxxxxxx>