[SCSI] iscsi: fix iscsi_endpoint leak
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 16 Feb 2011 21:04:33 +0000 (15:04 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 24 Feb 2011 17:41:05 +0000 (12:41 -0500)
commit22a39fbbfecfea703b686a4626a631d706ccb3ee
treed3d13184d9412310a6db0f9ae4423fd881a302cf
parentfdafd4dfc7bbdd40a4692192b77299b28c8a948f
[SCSI] iscsi: fix iscsi_endpoint leak

When iscsid restarts it does not know the connection's
endpoint, so it is getting leaked. This fixes the problem
by having the iscsi class force a disconnect before a
new connection is bound.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h