[SCSI] zfcp: No ERP escalation on gpn_ft eval
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 17 Nov 2010 13:23:42 +0000 (14:23 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 9 Dec 2010 15:41:19 +0000 (09:41 -0600)
commitd3e1088d68735eb7da12f79a0c3c0d951cbc89f1
treecebed32def6c9a63df52800d1ad63a0366c38f11
parent6fbf25e86beef1c6719e760a241a7aef9ad145e3
[SCSI] zfcp: No ERP escalation on gpn_ft eval

If the evaluation of GPN_FT requests wants to remove an invalid port
from the system the zfcp_erp_port_shutdown function is triggered.
Depending on the system status a superior action (e.g. adapter reopen)
is required. This can lead to an invalid mem access of the port struct
which might be freed at the time since the superior action is not
holding a reference of the port which triggered this ERP action.

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_erp.c