misc: mei: fix stalled read
commit1e69d64a28cf3cabd095ada3a49f081c97f997dd
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 29 May 2012 13:39:12 +0000 (29 16:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 20:52:14 +0000 (13 13:52 -0700)
tree9397a64345565c5b3a41f81fb3977723f005a923
parenta44cab4aff7e72e7052521121fd8ceca51351534
misc: mei: fix stalled read

This bug caused severe connectivity issue in the LMS application
(LMS is described in  Documentation/misc-devices/mei/mei.txt)

The bug was introduced in patch:
commit 1ccb7b6249f9bc50678e2a383084ed0a34cc9239
staging/mei: propagate error codes up in the write flow

The patch has reverted the return value logic of some fo function but
the conditional in _mei_irq_thread_read function was not swapped
making read always entering the error path

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/interrupt.c