2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/drivers/scsi/be2iscsi
Mike Christie f457a46f17 [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>
2011-06-29 16:43:06 -05:00
..
be_cmds.c [SCSI] be2iscsi: Set a timeout to FW 2011-04-15 16:46:16 -05:00
be_cmds.h [SCSI] be2iscsi: change in copyright notice 2011-04-15 16:46:15 -05:00
be_iscsi.c [SCSI] be2iscsi: change in copyright notice 2011-04-15 16:46:15 -05:00
be_iscsi.h [SCSI] be2iscsi: change in copyright notice 2011-04-15 16:46:15 -05:00
be_main.c [SCSI] iscsi_ibft, be2iscsi, iscsi_boot: fix boot kobj data lifetime management 2011-06-29 16:43:06 -05:00
be_main.h [SCSI] be2iscsi: update version 2011-05-01 16:35:11 -05:00
be_mgmt.c [SCSI] be2iscsi: fix chip cleanup 2011-05-01 16:34:41 -05:00
be_mgmt.h [SCSI] be2iscsi: change in copyright notice 2011-04-15 16:46:15 -05:00
be.h [SCSI] be2iscsi: change in copyright notice 2011-04-15 16:46:15 -05:00
Kconfig [SCSI] be2iscsi: select ISCSI_BOOT_SYSFS 2010-08-06 09:41:59 -05:00
Makefile [SCSI] be2iscsi: add 10Gbps iSCSI - BladeEngine 2 driver 2009-10-02 09:50:33 -05:00