ipmi:bt: Set the timeout before doing a capabilities check
authorCorey Minyard <cminyard@mvista.com>
Tue, 22 May 2018 13:14:51 +0000 (08:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:23:07 +0000 (11:23 +0200)
commitd11ec041b2c4fddd7d963cf09895fbcbe14fec2d
treeda55bbf7e9bd779dcf1194ec11241ae85850aba0
parent3e4fab744be24bf88dac651c5878c831743c0fbe
ipmi:bt: Set the timeout before doing a capabilities check

commit fe50a7d0393a552e4539da2d31261a59d6415950 upstream.

There was one place where the timeout value for an operation was
not being set, if a capabilities request was done from idle.  Move
the timeout value setting to before where that change might be
requested.

IMHO the cause here is the invisible returns in the macros.  Maybe
that's a job for later, though.

Reported-by: Nordmark Claes <Claes.Nordmark@tieto.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ipmi/ipmi_bt_sm.c