forked from Minki/linux
c19dcd0112
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> |
||
---|---|---|
.. | ||
57xx_iscsi_constants.h | ||
57xx_iscsi_hsi.h | ||
bnx2i_hwi.c | ||
bnx2i_init.c | ||
bnx2i_iscsi.c | ||
bnx2i_sysfs.c | ||
bnx2i.h | ||
Kconfig | ||
Makefile |