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: "Jayamohan Kalickal" <jayamohank@serverengines.com>  
Tested-by: "Jayamohan Kalickal" <jayamohank@serverengines.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: Peter Jones <pjones@redhat.com>
 

+4 -2
+4 -2
drivers/firmware/iscsi_ibft.c
··· 727 727 728 728 static void ibft_cleanup(void) 729 729 { 730 - ibft_unregister(); 731 - iscsi_boot_destroy_kset(boot_kset); 730 + if (boot_kset) { 731 + ibft_unregister(); 732 + iscsi_boot_destroy_kset(boot_kset); 733 + } 732 734 } 733 735 734 736 static void __exit ibft_exit(void)