]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From: Gerald Schaefer <geraldsc@de.ibm.com> |
2 | Subject: ctcm: avoid crash in ctcm_remove_device | |
3 | References: bnc#487755,LTC#52679 | |
4 | ||
5 | Symptom: crash in debugging call of ctcm_remove_device | |
6 | Problem: Channels are already removed when setting a | |
7 | ctcm-device offline. Thus ctcm_remove_device must | |
8 | not refer to channel information. | |
9 | Solution: delete channel information from the trace call in | |
10 | ctcm_remove_device. | |
11 | ||
12 | Acked-by: John Jolly <jjolly@suse.de> | |
13 | --- | |
14 | drivers/s390/net/ctcm_main.c | 6 ++---- | |
15 | 1 file changed, 2 insertions(+), 4 deletions(-) | |
16 | ||
17 | Index: 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); |