Skip to content

Commit

Permalink
Merge branch 'stable/fixes' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/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.
  • Loading branch information
Linus Torvalds committed Aug 14, 2010
2 parents 75a1e32 + 4cde752 commit 5e85308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/firmware/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ config ISCSI_BOOT_SYSFS
config ISCSI_IBFT
tristate "iSCSI Boot Firmware Table Attributes module"
select ISCSI_BOOT_SYSFS
depends on ISCSI_IBFT_FIND
depends on ISCSI_IBFT_FIND && SCSI
default n
help
This option enables support for detection and exposing of iSCSI
Expand Down
6 changes: 4 additions & 2 deletions drivers/firmware/iscsi_ibft.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,10 @@ static void ibft_unregister(void)

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

static void __exit ibft_exit(void)
Expand Down

0 comments on commit 5e85308

Please sign in to comment.