scsi: hisi_sas: Fix spin lock management in slot_index_alloc_quirk_v2_hw()
authorJohn Garry <john.garry@huawei.com>
Tue, 16 Oct 2018 15:00:36 +0000 (23:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 21:50:49 +0000 (17:50 -0400)
commitfe5fb42de36227c1c2dbb1e7403329ec8a915c20
tree30ea9037a07d1a7f104ae610804f69337814aee8
parentabaf75dd610ccfe1d085cb17061ac8862aabd2ea
scsi: hisi_sas: Fix spin lock management in slot_index_alloc_quirk_v2_hw()

Currently a spin_unlock_irqrestore() call is missing on the error path,
so add it.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c