diff options
| author | Jia-Ju Bai <[email protected]> | 2021-03-08 03:52:41 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-03-25 02:07:45 +0000 |
| commit | 3401ecf7fc1b9458a19d42c0e26a228f18ac7dda (patch) | |
| tree | d58ebb246e900bec7b657f69740fa6b950a83436 /drivers/usb/cdns3/core.c | |
| parent | scsi: qedi: Fix error return code of qedi_alloc_global_queues() (diff) | |
| download | kernel-3401ecf7fc1b9458a19d42c0e26a228f18ac7dda.tar.gz kernel-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/[email protected]
Fixes: c696f7b83ede ("scsi: mpt3sas: Implement device_remove_in_progress check in IOCTL path")
Reported-by: TOTE Robot <[email protected]>
Signed-off-by: Jia-Ju Bai <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions
