diff options
author | Jia-Ju Bai <[email protected]> | 2021-03-07 19:52:41 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-03-24 22:07:45 -0400 |
commit | 3401ecf7fc1b9458a19d42c0e26a228f18ac7dda (patch) | |
tree | d58ebb246e900bec7b657f69740fa6b950a83436 /net/lapb | |
parent | f69953837ca5d98aa983a138dc0b90a411e9c763 (diff) |
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 'net/lapb')
0 files changed, 0 insertions, 0 deletions