mei: bus: fix notification event delivery
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 7 Feb 2016 21:35:31 +0000 (23:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 22:47:20 +0000 (14:47 -0800)
commit850f8940a6a38563ff401073fd845414ab49c5ed
tree05fbeef8d289f9fa9378c004a7ec053f98fac89d
parenta1f9ae2bd264e3aed95aacd0102bd22a0422b8d1
mei: bus: fix notification event delivery

Call wake_up cl->ev_wait only in case there is no bus client registered
to the event notification.
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