]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit27e1b94dc9af605a9a611a75ab88f773e9dc6f88
treeb324766ee7b2a4e27728e24e2d4686c6c5109b29
parente6b9489acc7e679fe6107a98ab315b28977c0553
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