Skip to content

Commit 3869bb6

Browse files
Christof SchmittJames Bottomley
authored andcommitted
[SCSI] zfcp: Reference counting for cfdc requests
Before dropping the reference count with zfcp_adapter_put, increase it with zfcp_adapter_get when issuing cfdc requests. Reviewed-by: Martin Petermann <[email protected]> Signed-off-by: Christof Schmitt <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent 6ab35c0 commit 3869bb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/s390/scsi/zfcp_cfdc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Userspace interface for accessing the
55
* Access Control Lists / Control File Data Channel
66
*
7-
* Copyright IBM Corporation 2008
7+
* Copyright IBM Corporation 2008, 2009
88
*/
99

1010
#define KMSG_COMPONENT "zfcp"
@@ -197,6 +197,7 @@ static long zfcp_cfdc_dev_ioctl(struct file *file, unsigned int command,
197197
retval = -ENXIO;
198198
goto free_buffer;
199199
}
200+
zfcp_adapter_get(adapter);
200201

201202
retval = zfcp_cfdc_sg_setup(data->command, fsf_cfdc->sg,
202203
data_user->control_file);

0 commit comments

Comments
 (0)