]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hpsa: Correct rare oob condition
authorDon Brace <don.brace@microsemi.com>
Mon, 20 Jul 2020 21:52:51 +0000 (16:52 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:09:53 +0000 (22:09 -0400)
commit4c7bb8b194f1cf5ab5ea5e5941f994471fa11cb1
treeb324766ee7b2a4e27728e24e2d4686c6c5109b29
parentc0bb3b02ee2727e5a53e48ae602572881bbab294
scsi: hpsa: Correct rare oob condition

There are some rare conditions where a spare is first in the device list
causing an array out-of-bounds condition.

Link: https://lore.kernel.org/r/159528197176.24772.14659026352708896249.stgit@brunhilda
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c