[SCSI] zfcp: invalid usage after free of port resources
authorSwen Schillig <swen@vnet.ibm.com>
Tue, 18 Aug 2009 13:43:06 +0000 (15:43 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 5 Sep 2009 13:49:04 +0000 (08:49 -0500)
commita67417ab7eeff45bba55666c0e1083260f3624ee
tree7f52c070bc9eeb7f5bdbb7f35e26e6ddb2624772
parentcdf69bb91b0ef14f0e0a987a4430764e6c290644
[SCSI] zfcp: invalid usage after free of port resources

In certain error scenarios ports, rports are getting attached,
validated and removed from the systems environment. Depending on the
layer this occurs asynchronously. This patch fixes the few races
which existed and ensures all references and cross references are
cleared at the time they're invalid. In addition fc transports
actions are only scheduled when required.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/s390/scsi/zfcp_aux.c
drivers/s390/scsi/zfcp_scsi.c