diff options
author | James Smart <jsmart2021@gmail.com> | 2017-03-04 20:30:23 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-07 07:04:22 +0300 |
commit | 332ba3b5d6d27a60d445704ed7c88c7e9f958a30 (patch) | |
tree | db3d0f0c2d954b532bffe798e6623f7aacb4ad88 /tools/perf/scripts/python/stackcollapse.py | |
parent | 7aabe84b8a1bb7c3f75fb6a23dc96f8999bdcc8f (diff) | |
download | linux-332ba3b5d6d27a60d445704ed7c88c7e9f958a30.tar.xz |
scsi: lpfc: don't dereference dma_buf->iocbq before null check
From: Colin Ian King <colin.king@canonical.com>
dma_buf->iocbq is being dereferenced immediately before it is
being null checked, so we have a potential null pointer dereference
bug. Fix this by only dereferencing it only once we have passed
a null check on the pointer.
Detected by CoverityScan, CID#1411652 ("Dereference before null check")
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