diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-13 21:06:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-13 21:06:15 -0400 |
| commit | 5e8530810805858892959b8ebbcec1009ea8c12d (patch) | |
| tree | 01c08d865f43b51ec6b4201082d5b84218192fe9 | |
| parent | 75a1e32cce30ab1c5a361ebae24a18753e42feaa (diff) | |
| parent | 4cde752587bab61cedf53fc59ca92787f8612ec0 (diff) | |
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.
| -rw-r--r-- | drivers/firmware/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/firmware/iscsi_ibft.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index a6c670b8ce52..d4ed8e98edf7 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig | |||
| @@ -133,7 +133,7 @@ config ISCSI_BOOT_SYSFS | |||
| 133 | config ISCSI_IBFT | 133 | config ISCSI_IBFT |
| 134 | tristate "iSCSI Boot Firmware Table Attributes module" | 134 | tristate "iSCSI Boot Firmware Table Attributes module" |
| 135 | select ISCSI_BOOT_SYSFS | 135 | select ISCSI_BOOT_SYSFS |
| 136 | depends on ISCSI_IBFT_FIND | 136 | depends on ISCSI_IBFT_FIND && SCSI |
| 137 | default n | 137 | default n |
| 138 | help | 138 | help |
| 139 | This option enables support for detection and exposing of iSCSI | 139 | This option enables support for detection and exposing of iSCSI |
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c index 4f04ec0410a0..6148a1c67895 100644 --- a/drivers/firmware/iscsi_ibft.c +++ b/drivers/firmware/iscsi_ibft.c | |||
| @@ -727,8 +727,10 @@ static void ibft_unregister(void) | |||
| 727 | 727 | ||
| 728 | static void ibft_cleanup(void) | 728 | static void ibft_cleanup(void) |
| 729 | { | 729 | { |
| 730 | ibft_unregister(); | 730 | if (boot_kset) { |
| 731 | iscsi_boot_destroy_kset(boot_kset); | 731 | ibft_unregister(); |
| 732 | iscsi_boot_destroy_kset(boot_kset); | ||
| 733 | } | ||
| 732 | } | 734 | } |
| 733 | 735 | ||
| 734 | static void __exit ibft_exit(void) | 736 | static void __exit ibft_exit(void) |
