diff options
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 1c43f9ac0989..5c4e1f625bbb 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -3658,6 +3658,9 @@ static void cleanup_one_si(struct smi_info *to_clean) | |||
3658 | if (!to_clean) | 3658 | if (!to_clean) |
3659 | return; | 3659 | return; |
3660 | 3660 | ||
3661 | if (to_clean->dev) | ||
3662 | dev_set_drvdata(to_clean->dev, NULL); | ||
3663 | |||
3661 | list_del(&to_clean->link); | 3664 | list_del(&to_clean->link); |
3662 | 3665 | ||
3663 | /* Tell the driver that we are shutting down. */ | 3666 | /* Tell the driver that we are shutting down. */ |