mei: fix return value on disconnect timeout
authorAlexander Usyskin <alexander.usyskin@intel.com>
Thu, 17 Jul 2014 07:53:38 +0000 (10:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 01:38:37 +0000 (18:38 -0700)
commitfe2f17eb3da38ac0d5a00c511255bf3a33d16d24
treebcc4660cd2e1cadb29fd68415be5fe33ac4a4666
parentd5d83f8abea13d0b50ee762276c6c900d1946264
mei: fix return value on disconnect timeout

wait_event_timeout can return 0 or the remaining jiffies
so return -ETIME if disconnected state not reached.

Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/client.c