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:Chandrakanth Patil <chandrakanth.patil@broadcom.com> Signed-off-by:
Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Conflicts: drivers/scsi/megaraid/megaraid_sas_base.c Signed-off-by:
Luo Gengkun <luogengkun2@huawei.com>
Loading
Please sign in to comment