[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>
This commit is contained in:
Родитель
6fbf25e86b
Коммит
d3e1088d68
|
@ -156,6 +156,8 @@ static int zfcp_erp_required_act(int want, struct zfcp_adapter *adapter,
|
|||
if (!(a_status & ZFCP_STATUS_COMMON_RUNNING) ||
|
||||
a_status & ZFCP_STATUS_COMMON_ERP_FAILED)
|
||||
return 0;
|
||||
if (p_status & ZFCP_STATUS_COMMON_NOESC)
|
||||
return need;
|
||||
if (!(a_status & ZFCP_STATUS_COMMON_UNBLOCKED))
|
||||
need = ZFCP_ERP_ACTION_REOPEN_ADAPTER;
|
||||
/* fall through */
|
||||
|
|
Загрузка…
Ссылка в новой задаче