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)
committerCorey Minyard <cminyard@mvista.com>
Tue, 22 May 2018 18:48:30 +0000 (13:48 -0500)
commitfe50a7d0393a552e4539da2d31261a59d6415950
treee6fc65062c22a4056b540dd24cc017c7394fa04e
parent163475ebf9f3d1b516c1f8ee4f59eb8ff8e97ee8
ipmi:bt: Set the timeout before doing a capabilities check

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
drivers/char/ipmi/ipmi_bt_sm.c