diff options
author | 2021-03-07 19:52:41 -0800 | |
---|---|---|
committer | 2021-03-24 22:07:45 -0400 | |
commit | 3401ecf7fc1b9458a19d42c0e26a228f18ac7dda (patch) | |
tree | d58ebb246e900bec7b657f69740fa6b950a83436 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | scsi: qedi: Fix error return code of qedi_alloc_global_queues() (diff) | |
download | wireguard-linux-3401ecf7fc1b9458a19d42c0e26a228f18ac7dda.tar.xz wireguard-linux-3401ecf7fc1b9458a19d42c0e26a228f18ac7dda.zip |
scsi: mpt3sas: Fix error return code of mpt3sas_base_attach()
When kzalloc() returns NULL, no error return code of mpt3sas_base_attach()
is assigned. To fix this bug, r is assigned with -ENOMEM in this case.
Link: https://lore.kernel.org/r/20210308035241.3288-1-baijiaju1990@gmail.com
Fixes: c696f7b83ede ("scsi: mpt3sas: Implement device_remove_in_progress check in IOCTL path")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions