Skip to content

Commit

Permalink
ipmi:ipmi_ipmb: Unregister the SMI on remove
Browse files Browse the repository at this point in the history
Otherwise it will continue to be hooked into the IPMI framework.

Signed-off-by: Corey Minyard <minyard@acm.org>
  • Loading branch information
Corey Minyard authored and Corey Minyard committed Feb 23, 2022
1 parent 2596f6b commit 57c9e3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/ipmi/ipmi_ipmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ static int ipmi_ipmb_remove(struct i2c_client *client)
}
ipmi_ipmb_stop_thread(iidev);

ipmi_unregister_smi(iidev->intf);

return 0;
}

Expand Down

0 comments on commit 57c9e3c

Please sign in to comment.