Files
linux-stable-mirror/drivers
Jia-Ju BaiandGreg Kroah-Hartman 2423511cc5 scsi: mpt3sas: Fix error return code of mpt3sas_base_attach()
[ Upstream commit 3401ecf7fc ]

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: c696f7b83e ("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>
2021-03-30 14:32:07 +02:00
..
2021-03-30 14:32:03 +02:00
2021-03-04 11:38:21 +01:00
2021-03-04 11:38:03 +01:00
2021-03-04 11:37:28 +01:00
2021-03-25 09:04:08 +01:00