mei: fix device reset on mei_cl_irq_read_msg allocation failure
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 10 Feb 2015 08:39:36 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 03:36:59 +0000 (19:36 -0800)
commit3d33ff2457355a9dd3c3178b04ab6669882b306c
tree692168d2c6df72783349246c879995212d3f7dd3
parent3908be6f9aa5517bc717f8ffdaaafd89a1b78471
mei: fix device reset on mei_cl_irq_read_msg allocation failure

On memory allocation failure mei_cl_irq_read_msg will
return with error that will cause device reset.
Instead we should propagate error to caller and
just clean the read queues.

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/interrupt.c
drivers/misc/mei/main.c
drivers/misc/mei/mei_dev.h