Skip to content
Commit b0a166e9 authored by Chandrakanth Patil's avatar Chandrakanth Patil Committed by Luo Gengkun
Browse files

scsi: megaraid_sas: Fix resource leak in case of probe failure

mainline inclusion
from mainline-v5.14-rc1
commit b5438f48
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9RQ71
CVE: CVE-2021-47329

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b5438f48fdd8e1c3f130d32637511efd32038152

--------------------------------

The driver doesn't clean up all the allocated resources properly when
scsi_add_host(), megasas_start_aen() function fails during the PCI device
probe.

Clean up all those resources.

Link: https://lore.kernel.org/r/20210528131307.25683-3-chandrakanth.patil@broadcom.com


Signed-off-by: default avatarChandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: default avatarSumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>

Conflicts:
	drivers/scsi/megaraid/megaraid_sas_base.c
Signed-off-by: default avatarLuo Gengkun <luogengkun2@huawei.com>
parent d2901c3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment