summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_bt_sm.c
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-08-22 12:08:13 -0500
committerCorey Minyard <cminyard@mvista.com>2018-08-31 08:42:29 -0500
commit2512e40e48d21d8bac09f7e91d2c3ceb2d3b50b2 (patch)
treed3f88ae5767b53c41a4a9d8c4089dc98ac956dd7 /drivers/char/ipmi/ipmi_bt_sm.c
parentcd2315d471f45a36cb1329722920d89cd6d3d11f (diff)
downloadlinux-stable-2512e40e48d21d8bac09f7e91d2c3ceb2d3b50b2.tar.gz
linux-stable-2512e40e48d21d8bac09f7e91d2c3ceb2d3b50b2.tar.bz2
linux-stable-2512e40e48d21d8bac09f7e91d2c3ceb2d3b50b2.zip
ipmi: Rework SMI registration failure
There were certain situations where ipmi_register_smi() would return a failure, but the interface would still be registered and would need to be unregistered. This is obviously a bad design and resulted in an oops in certain failure cases. If the interface is started up in ipmi_register_smi(), then an error occurs, shut down the interface there so the cleanup can be done properly. Fix the various smi users, too. Signed-off-by: Corey Minyard <cminyard@mvista.com> Reported-by: Justin Ernst <justin.ernst@hpe.com> Tested-by: Justin Ernst <justin.ernst@hpe.com> Cc: Andrew Banman <abanman@hpe.com> Cc: Russ Anderson <russ.anderson@hpe.com> Cc: <stable@vger.kernel.org> # 4.18.x
Diffstat (limited to 'drivers/char/ipmi/ipmi_bt_sm.c')
0 files changed, 0 insertions, 0 deletions