ncr5380: Fix off-by-one bug in extended_msg[] bounds check
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 3 Jan 2016 05:05:45 +0000 (16:05 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:43:02 +0000 (21:43 -0500)
commite0783ed3660aecb83af580cdace583980b22809b
tree3a6190115137d208386cd2e8e93fbe61e95dd091
parent72064a783b0c24dc4325295ffba949c115aff6d2
ncr5380: Fix off-by-one bug in extended_msg[] bounds check

Fix the array bounds check when transferring an extended message from the
target.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/atari_NCR5380.c