[SCSI] zfcp: Prevent usage w/o holding a reference
authorSwen Schillig <swen@vnet.ibm.com>
Wed, 17 Nov 2010 13:23:43 +0000 (14:23 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 9 Dec 2010 15:41:21 +0000 (09:41 -0600)
commit14718e3cd8e9c6937114cebbf3ce5d504328da8c
treed9ee10fc825730ce360f50caf53377ebe2872655
parentd3e1088d68735eb7da12f79a0c3c0d951cbc89f1
[SCSI] zfcp: Prevent usage w/o holding a reference

The ERP got values assigned for which no reference was taken.  This
can lead to an unpredictable race condition.  Fix this by only
assigning the values which are required and for which a reference was
pulled or is held implicitly.

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