]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi/watchdog: fix wdog hang on panic waiting for ipmi response
authorRobert Lippert <roblip@gmail.com>
Thu, 20 Apr 2017 23:49:47 +0000 (16:49 -0700)
committerCorey Minyard <cminyard@mvista.com>
Fri, 28 Apr 2017 19:53:17 +0000 (14:53 -0500)
commit46b5ff4c0705c744f474b750162070da3c737419
treee67f34d54acb1685b5947da6afc335b3f1158368
parentceccfd108c2c09eefac7cd7c33fd103e5f371bf3
ipmi/watchdog: fix wdog hang on panic waiting for ipmi response

Commit 21942e534dce ("ipmi: Don't call receive handler in the
panic context") means that the panic_recv_free is not called during a
panic and the atomic count does not drop to 0.

Fix this by only expecting one decrement of the atomic variable
which comes from panic_smi_free.

Signed-off-by: Robert Lippert <rlippert@google.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_watchdog.c