[SCSI] zfcp: Fix oops when port disappears
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Fri, 17 Apr 2009 13:08:15 +0000 (15:08 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 15:07:37 +0000 (10:07 -0500)
commit70932935b61ee3dcc5a419ec4c367feb2ff808e4
tree67e0925b8a44b3e163e4da36ecff299ba9e842bf
parent3869bb6e73f5f55ce16b13025726b0bfdf1f4aae
[SCSI] zfcp: Fix oops when port disappears

The zfcp_port might have been removed, while the FC fast_io_fail timer
is still running and could trigger the terminate_rport_io callback.
Set the pointer to the zfcp_port to NULL and check accordingly
before using it.

Reviewed-by: Martin Petermann <martin@linux.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_aux.c
drivers/s390/scsi/zfcp_fsf.c
drivers/s390/scsi/zfcp_scsi.c