]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.arch/s390-12-16-zfcp_reference_counting_for_cfdc_requests.patch
Add a patch to fix Intel E100 wake-on-lan problems.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / s390-12-16-zfcp_reference_counting_for_cfdc_requests.patch
1 From: Gerald Schaefer <geraldsc@de.ibm.com>
2 Subject: zfcp: Fix reference counting for cfdc requests
3 References: bnc#487755,LTC#52849
4
5 Symptom: Setting adapter off-line will hang.
6 Problem: The adapter reference count can get negative.
7 Solution: Increase the reference count when issuing
8 cfdc requests.
9
10 Acked-by: John Jolly <jjolly@suse.de>
11 ---
12 drivers/s390/scsi/zfcp_cfdc.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 Index: linux-sles11/drivers/s390/scsi/zfcp_cfdc.c
16 ===================================================================
17 --- linux-sles11.orig/drivers/s390/scsi/zfcp_cfdc.c
18 +++ linux-sles11/drivers/s390/scsi/zfcp_cfdc.c
19 @@ -207,6 +207,7 @@ static long zfcp_cfdc_dev_ioctl(struct f
20 retval = -ENXIO;
21 goto free_buffer;
22 }
23 + zfcp_adapter_get(adapter);
24
25 retval = zfcp_cfdc_sg_setup(data->command, fsf_cfdc->sg,
26 data_user->control_file);