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

Commit a12415ff authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

ibft: Kernel oops when rmmoding iscsi_ibft with no iBFT present.



We failed to check to see if actually allocated structures
to contain the iBFT structure and went ahead to dereference it.

This patch fixes the OOPS.

Reported-by: default avatar"Jayamohan Kalickal" <jayamohank@serverengines.com&gt;  >
Tested-by: default avatar"Jayamohan Kalickal" <jayamohank@serverengines.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: default avatarPeter Jones <pjones@redhat.com>
 
parent 5abd9ccc
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -727,9 +727,11 @@ static void ibft_unregister(void)

static void ibft_cleanup(void)
{
	if (boot_kset) {
		ibft_unregister();
		iscsi_boot_destroy_kset(boot_kset);
	}
}

static void __exit ibft_exit(void)
{