Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <martin@linux.vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Christof Schmitt and committed by
James Bottomley
3869bb6e 6ab35c07

+2 -1
+2 -1
drivers/s390/scsi/zfcp_cfdc.c
··· 4 4 * Userspace interface for accessing the 5 5 * Access Control Lists / Control File Data Channel 6 6 * 7 - * Copyright IBM Corporation 2008 7 + * Copyright IBM Corporation 2008, 2009 8 8 */ 9 9 10 10 #define KMSG_COMPONENT "zfcp" ··· 197 197 retval = -ENXIO; 198 198 goto free_buffer; 199 199 } 200 + zfcp_adapter_get(adapter); 200 201 201 202 retval = zfcp_cfdc_sg_setup(data->command, fsf_cfdc->sg, 202 203 data_user->control_file);