2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/scsi/lpfc
James Smart d11f54b7d1 scsi: lpfc: fix missing spin_unlock on sql_list_lock
From: Colin Ian King <colin.king@canonical.com>

In the case where sglq is null, the current code just returns without
unlocking the spinlock sql_list_lock. Fix this by breaking out of the
while loop and the exit path will then unlock and return NULL as was
the original intention.

Detected by CoverityScan, CID#1411635 ("Missing unlock")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-03-06 23:04:22 -05:00
..
lpfc_attr.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_attr.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_bsg.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_bsg.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_compat.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_crtn.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_ct.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_debugfs.c scsi: lpfc: use div_u64 for 64-bit division 2017-02-27 22:07:03 -05:00
lpfc_debugfs.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_disc.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_els.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_hbadisc.c scsi: lpfc: replace init_timer by setup_timer 2017-03-06 22:48:49 -05:00
lpfc_hw4.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_hw.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_ids.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_init.c scsi: lpfc: replace init_timer by setup_timer 2017-03-06 22:48:49 -05:00
lpfc_logmsg.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_mbox.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_mem.c scsi: lpfc: don't dereference dma_buf->iocbq before null check 2017-03-06 23:04:22 -05:00
lpfc_nl.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_nportdisc.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_nvme.c scsi: lpfc: use proper format string for dma_addr_t 2017-02-27 22:08:40 -05:00
lpfc_nvme.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_nvmet.c scsi: lpfc: remove redundant assignment of sgel 2017-03-06 23:04:22 -05:00
lpfc_nvmet.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_scsi.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_scsi.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_sli4.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_sli.c scsi: lpfc: fix missing spin_unlock on sql_list_lock 2017-03-06 23:04:22 -05:00
lpfc_sli.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_version.h scsi: lpfc: Update lpfc version to 11.2.0.7 2017-02-22 18:41:44 -05:00
lpfc_vport.c scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_vport.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
Makefile scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00