staging: gasket: fix gasket_wait_with_reschedule timeout return code
authorTodd Poynor <toddpoynor@google.com>
Tue, 17 Jul 2018 20:56:50 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2018 09:39:47 +0000 (11:39 +0200)
commit24dfee40e6c4b558437db1bdb3c4927cec1bda51
tree968b3abb41793afc1d9793d9a8784515505481bb
parente24fbaf73f0541994ab3a947bcf6feb5258c9204
staging: gasket: fix gasket_wait_with_reschedule timeout return code

Return -ETIMEDOUT, not -EINVAL, on timeout, including callers.

Reported-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/apex_driver.c
drivers/staging/gasket/gasket_core.c