[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)
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>

No differences found