diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-07 19:52:41 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-30 14:32:07 +0200 |
commit | 2423511cc5baf23bdac3dbc171beab094c3b5107 (patch) | |
tree | dc79c8cf2269d6a7c9770bc1252825a9728adcf7 /sound/aoa/soundbus/sysfs.c | |
parent | 6b977fea78de067da698088e167714516a4a31b1 (diff) | |
download | linux-stable-2423511cc5baf23bdac3dbc171beab094c3b5107.tar.gz linux-stable-2423511cc5baf23bdac3dbc171beab094c3b5107.tar.bz2 linux-stable-2423511cc5baf23bdac3dbc171beab094c3b5107.zip |
scsi: mpt3sas: Fix error return code of mpt3sas_base_attach()
[ Upstream commit 3401ecf7fc1b9458a19d42c0e26a228f18ac7dda ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/aoa/soundbus/sysfs.c')
0 files changed, 0 insertions, 0 deletions