diff options
author | Mike Christie | 2011-06-24 22:11:53 +0200 |
---|---|---|
committer | James Bottomley | 2011-06-29 23:43:06 +0200 |
commit | f457a46f179df41b0f6d80dee33b6e629945f276 (patch) | |
tree | acbeac8630b898610fe71295f11cbc71f956b8ba /drivers/ide/Kconfig | |
parent | [SCSI] iscsi_boot_sysfs: have this module check for null on destruction (diff) | |
download | kernel-qcow2-linux-f457a46f179df41b0f6d80dee33b6e629945f276.tar.gz kernel-qcow2-linux-f457a46f179df41b0f6d80dee33b6e629945f276.tar.xz kernel-qcow2-linux-f457a46f179df41b0f6d80dee33b6e629945f276.zip |
[SCSI] iscsi_ibft, be2iscsi, iscsi_boot: fix boot kobj data lifetime management
be2iscsi passes the boot functions its phba object which is
allocated in the shost, but iscsi_ibft passes in a object
allocated for each item to display. The problem is that
iscsi_boot_sysfs was managing the lifetime of the object
passed in and doing a kfree on release. This causes a double
free for be2iscsi which frees the shost in its pci_remove.
This patch fixes the problem by adding a release callback
which the drivers can call kfree or a put() type of function
(needed for be2iscsi which will do a get/put on the shost).
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/ide/Kconfig')
0 files changed, 0 insertions, 0 deletions