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)
commit2c1175c2e8e5487233cabde358a19577562ac83e
treee67f34d54acb1685b5947da6afc335b3f1158368
parent3f724c408a7bcf25609f6a0102b835d5970cadd3
ipmi/watchdog: fix wdog hang on panic waiting for ipmi response

Commit c49c097610fe ("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