]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/s390-12-07-ctcm_remove_crash.patch
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-12-07-ctcm_remove_crash.patch
CommitLineData
2cb7cef9
BS
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: ctcm: avoid crash in ctcm_remove_device
3References: bnc#487755,LTC#52679
4
5Symptom: crash in debugging call of ctcm_remove_device
6Problem: Channels are already removed when setting a
7 ctcm-device offline. Thus ctcm_remove_device must
8 not refer to channel information.
9Solution: delete channel information from the trace call in
10 ctcm_remove_device.
11
12Acked-by: John Jolly <jjolly@suse.de>
13---
14 drivers/s390/net/ctcm_main.c | 6 ++----
15 1 file changed, 2 insertions(+), 4 deletions(-)
16
17Index: linux-sles11/drivers/s390/net/ctcm_main.c
18===================================================================
19--- linux-sles11.orig/drivers/s390/net/ctcm_main.c
20+++ linux-sles11/drivers/s390/net/ctcm_main.c
21@@ -1665,10 +1665,8 @@ static void ctcm_remove_device(struct cc
22 BUG_ON(priv == NULL);
23
24 CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO,
25- "removing device %s, r/w = %s/%s, proto : %d",
26- priv->channel[READ]->netdev->name,
27- priv->channel[READ]->id, priv->channel[WRITE]->id,
28- priv->protocol);
29+ "removing device %p, proto : %d",
30+ cgdev, priv->protocol);
31
32 if (cgdev->state == CCWGROUP_ONLINE)
33 ctcm_shutdown_device(cgdev);