mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:00:58 +07:00
[SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()
Load and unload iscsi_ibft module will cause kernel memory leak, fix it in scsi/iscsi_boot_sysfs.c iscsi_boot_destroy_kset(). Signed-off-by: Ethan Zhao <ethan.kernel@gmail.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
46a84c6516
commit
9cb48e7b9e
@ -490,5 +490,6 @@ void iscsi_boot_destroy_kset(struct iscsi_boot_kset *boot_kset)
|
||||
iscsi_boot_remove_kobj(boot_kobj);
|
||||
|
||||
kset_unregister(boot_kset->kset);
|
||||
kfree(boot_kset);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(iscsi_boot_destroy_kset);
|
||||
|
Loading…
Reference in New Issue
Block a user