scsi: smartpqi: Correct device removal for multi-actuator devices
authorKumar Meiyappan <Kumar.Meiyappan@microchip.com>
Tue, 8 Nov 2022 19:21:58 +0000 (13:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:33:06 +0000 (13:33 +0100)
commitd1c8b86b4ab7e8588a8cfadbdd6f20adbb15c938
tree8ce620a9b0dcc327129215c6b74d396765bf8d92
parent41d8a934e2ea7446c71b6415d8da4ef66dc3f00b
scsi: smartpqi: Correct device removal for multi-actuator devices

[ Upstream commit cc9befcbbb5ebce77726f938508700d913530035 ]

Correct device count for multi-actuator drives which can cause kernel
panics.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike Mcgowan <mike.mcgowan@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Kumar Meiyappan <Kumar.Meiyappan@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/166793531872.322537.9003385780343419275.stgit@brunhilda
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/smartpqi/smartpqi.h
drivers/scsi/smartpqi/smartpqi_init.c