mwifiex: do not return success when command times out
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 30 Apr 2015 23:52:02 +0000 (16:52 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 9 May 2015 13:47:34 +0000 (16:47 +0300)
commit4e0ff946ee0b010a917dad6ae2fcbdc7e6f9ac16
treec8c27424232c48427f083e9aa5472b2c0d510321
parenta534f3b60cac1af43a8dd0ab01afb25e36c9b631
mwifiex: do not return success when command times out

wait_event_interruptible_timeout() returns 0 upon timeout. We should
convert it to a negative error code (such as -ETIMEDOUT) instead of
returning it directly, as return code of 0 indicates that command was
executed.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/sta_ioctl.c