[SCSI] zfcp: Increase ref counter for port open requests
authorMartin Petermann <martin.petermann@de.ibm.com>
Fri, 15 May 2009 11:18:19 +0000 (13:18 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 23 May 2009 20:44:15 +0000 (15:44 -0500)
commita17c5855643afa7838f542cbd0a1ed9a73968cef
treefec68adb1041443f15dc36cca8ed32ae18170af2
parentdceab655d9f7d99881c2033c8ff4e1c7b444e104
[SCSI] zfcp: Increase ref counter for port open requests

In rare cases, open port request might timeout, erp calls
zfcp_port_put, port gets dequeued. Now, the late returning (or
dismissed) fsf-port-open calls the fsf_port_open_handler that tries to
reference the port data structure leading to a kernel oops.

Signed-off-by: Martin Petermann <martin.petermann@de.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_fsf.c