Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9cb48e7b authored by Ethan Zhao's avatar Ethan Zhao Committed by James Bottomley
Browse files

[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: default avatarEthan Zhao <ethan.kernel@gmail.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 46a84c65
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);