mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
ctcm: avoid crash in ctcm_remove_device
Channels are already removed when setting a ctcm-device offline. Thus ctcm_remove_device must not refer to channel information. Solution: delete channel information from the trace call in ctcm_remove_device. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f214856540
commit
8ac6d45228
1 changed files with 2 additions and 4 deletions
|
@ -1677,10 +1677,8 @@ static void ctcm_remove_device(struct ccwgroup_device *cgdev)
|
||||||
BUG_ON(priv == NULL);
|
BUG_ON(priv == NULL);
|
||||||
|
|
||||||
CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO,
|
CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO,
|
||||||
"removing device %s, r/w = %s/%s, proto : %d",
|
"removing device %p, proto : %d",
|
||||||
priv->channel[READ]->netdev->name,
|
cgdev, priv->protocol);
|
||||||
priv->channel[READ]->id, priv->channel[WRITE]->id,
|
|
||||||
priv->protocol);
|
|
||||||
|
|
||||||
if (cgdev->state == CCWGROUP_ONLINE)
|
if (cgdev->state == CCWGROUP_ONLINE)
|
||||||
ctcm_shutdown_device(cgdev);
|
ctcm_shutdown_device(cgdev);
|
||||||
|
|
Loading…
Reference in a new issue