diff options
author | James Smart <jsmart2021@gmail.com> | 2017-03-04 20:30:24 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-07 07:04:22 +0300 |
commit | d11f54b7d1d40463024be3b40ab7be2c8a84fa43 (patch) | |
tree | 3ca62489bbc6e48313bdd480206ca581c65d9a0c /tools/perf/scripts/python/stackcollapse.py | |
parent | 332ba3b5d6d27a60d445704ed7c88c7e9f958a30 (diff) | |
download | linux-d11f54b7d1d40463024be3b40ab7be2c8a84fa43.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions