Commit 1284a1fc authored by Zhu Wang's avatar Zhu Wang Committed by Yongqiang Liu
Browse files

scsi: core: raid_class: Remove raid_component_add()

mainline inclusion
from mainline-v6.5
commit 60c5fd2e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7ZELT


CVE: NA

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

The raid_component_add() function was added to the kernel tree via patch
"[SCSI] embryonic RAID class" (2005). Remove this function since it never
has had any callers in the Linux kernel. And also raid_component_release()
is only used in raid_component_add(), so it is also removed.

Signed-off-by: default avatarZhu Wang <wangzhu9@huawei.com>
Link: https://lore.kernel.org/r/20230822015254.184270-1-wangzhu9@huawei.com


Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Fixes: 04b5b5cb ("scsi: core: Fix possible memory leak if device_add() fails")
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent e4cbd924
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment