linux_old1/drivers/scsi/bnx2i
Anil Veerabhadrappa c19dcd0112 [SCSI] bnx2i : Fix "cid #n not valid" issue
When bnx2i_adapter_ready() fails, connection handle(cid) = 0 is wrongly freed
because 'cid' is not yet allocated for the endpoint.  Fix is to initialize
bnx2i_ep->ep_iscsi_cid to '-1' in bnx2i_alloc_ep() and not in
bnx2i_ep_connect() to avoid releasing invalid 'cid'.  There is already a check
in bnx2i_free_iscsi_cid() not to free invalid iscsi connection handle (-1)

Signed-off-by: Anil Veerabhadrappa <anilgv@broadcom.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2009-08-22 17:52:12 -05:00
..
57xx_iscsi_constants.h [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00
57xx_iscsi_hsi.h [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00
Kconfig cnic: add NETDEV_1000 and NETDEVICES to Kconfig select 2009-06-21 11:02:59 -05:00
Makefile [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00
bnx2i.h [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00
bnx2i_hwi.c [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00
bnx2i_init.c [SCSI] bnx2i: register given device with cnic if shost != NULL in ep_connect() 2009-08-22 17:51:54 -05:00
bnx2i_iscsi.c [SCSI] bnx2i : Fix "cid #n not valid" issue 2009-08-22 17:52:12 -05:00
bnx2i_sysfs.c [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00