Commit 5e853081 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'stable/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6

* 'stable/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6:
  firmware: ibft depends on SCSI
  ibft: Kernel oops when rmmoding iscsi_ibft with no iBFT present.
parents 75a1e32c 4cde7525
...@@ -133,7 +133,7 @@ config ISCSI_BOOT_SYSFS ...@@ -133,7 +133,7 @@ config ISCSI_BOOT_SYSFS
config ISCSI_IBFT config ISCSI_IBFT
tristate "iSCSI Boot Firmware Table Attributes module" tristate "iSCSI Boot Firmware Table Attributes module"
select ISCSI_BOOT_SYSFS select ISCSI_BOOT_SYSFS
depends on ISCSI_IBFT_FIND depends on ISCSI_IBFT_FIND && SCSI
default n default n
help help
This option enables support for detection and exposing of iSCSI This option enables support for detection and exposing of iSCSI
......
...@@ -727,8 +727,10 @@ static void ibft_unregister(void) ...@@ -727,8 +727,10 @@ static void ibft_unregister(void)
static void ibft_cleanup(void) static void ibft_cleanup(void)
{ {
ibft_unregister(); if (boot_kset) {
iscsi_boot_destroy_kset(boot_kset); ibft_unregister();
iscsi_boot_destroy_kset(boot_kset);
}
} }
static void __exit ibft_exit(void) static void __exit ibft_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment