mei: bus: fix RX event scheduling
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 7 Feb 2016 21:35:30 +0000 (23:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 22:47:20 +0000 (14:47 -0800)
commita1f9ae2bd264e3aed95aacd0102bd22a0422b8d1
tree9d089dc38c60b17344042bfc16bbc4eccd9a67f4
parentb74d883138911b110cf8f5b7b94790e16bb56795
mei: bus: fix RX event scheduling

In this particular case this more correct and safer to check if the RX
event is set in the event mask rather than query waitqueue_active
Since the check is already performed in the mei_cl_bus_rx_event
function,  it is just required to check for its return value.
Second, since we don't have exclusive waiter wake_up_interruptible_all
is not used correctly here.

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