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:24:49 +0000 (11:24 +0200)
commit3ffecef63d0932c3becceb1ef166e95e9a1ca33d
tree8fc9d2be8de9b57ba71f31052dc8ebe9553c197a
parent26e03f8dcd347a543f62eb58831ff417736d9d53
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