From: Anil Veerabhadrappa Date: Thu, 30 Jul 2009 04:50:11 +0000 (-0700) Subject: [SCSI] bnx2i : Fix "cid #n not valid" issue X-Git-Tag: v2.6.32-rc1~689^2~163 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c19dcd011238118ad07d3ab7ed1bbc4916826324;p=pandora-kernel.git [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 Signed-off-by: James Bottomley Signed-off-by: James Bottomley --- Reading git-diff-tree failed