diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-04-17 09:08:14 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 11:07:36 -0400 |
commit | 3869bb6e73f5f55ce16b13025726b0bfdf1f4aae (patch) | |
tree | c811b847952ecc4a5173274a48803f28097e205e /drivers/s390/scsi | |
parent | 6ab35c0713daf8cd68f272a4be8dfc02c86bbd3b (diff) |
[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>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r-- | drivers/s390/scsi/zfcp_cfdc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_cfdc.c b/drivers/s390/scsi/zfcp_cfdc.c index 10cbfd172a28..8305c874e86f 100644 --- a/drivers/s390/scsi/zfcp_cfdc.c +++ b/drivers/s390/scsi/zfcp_cfdc.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * Userspace interface for accessing the | 4 | * Userspace interface for accessing the |
5 | * Access Control Lists / Control File Data Channel | 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 | #define KMSG_COMPONENT "zfcp" | 10 | #define KMSG_COMPONENT "zfcp" |
@@ -197,6 +197,7 @@ static long zfcp_cfdc_dev_ioctl(struct file *file, unsigned int command, | |||
197 | retval = -ENXIO; | 197 | retval = -ENXIO; |
198 | goto free_buffer; | 198 | goto free_buffer; |
199 | } | 199 | } |
200 | zfcp_adapter_get(adapter); | ||
200 | 201 | ||
201 | retval = zfcp_cfdc_sg_setup(data->command, fsf_cfdc->sg, | 202 | retval = zfcp_cfdc_sg_setup(data->command, fsf_cfdc->sg, |
202 | data_user->control_file); | 203 | data_user->control_file); |