]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ff8c35be56a9b8ce4757373d625df5b3163ef26
tree30ea9037a07d1a7f104ae610804f69337814aee8
parentacbae5b1e1c5e8a20c48e3e74ea7e76fab4c6e2f
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