[SCSI] zfcp: prevent fc_remote_port_delete calls for unregistered rport
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 1 Oct 2008 10:42:23 +0000 (12:42 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Oct 2008 17:11:55 +0000 (12:11 -0500)
commite4e9ba5d9313f362d2192fb7a2d35a3bfb714b1e
tree82e7319ec06da69956bb9a80b30b60cef79f2da7
parentb7f15f3c94196accac799727502ed88a029ae7ef
[SCSI] zfcp: prevent fc_remote_port_delete calls for unregistered rport

In case of an adapter reopen all rports have to be deleted from the
environment. This should only happen for already registered rports
otherwise fc_remote_port_delete is called with a NULL pointer.

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@HansenPartnership.com>
drivers/s390/scsi/zfcp_erp.c