[SCSI] zfcp: Call get_device on port before calling put_device
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Tue, 5 Oct 2010 15:12:54 +0000 (17:12 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 14:42:37 +0000 (09:42 -0500)
commit1a9708cd352e3b25500704daee9270d879e48199
tree7e2ecc4a425b2389f3891c54eb1a8dff62470a28
parent0df138476c8306478d6e726f044868b4bccf411c
[SCSI] zfcp: Call get_device on port before calling put_device

zfcp_unit_release calls put_device on the port. Ensure that get_device
has been called before possibly triggering the release function
through put_device or device_unregister.

Reviewed-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_unit.c