]> git.karo-electronics.de Git - linux-beck.git/commit
mei: amthif: fix request cancel
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 24 May 2016 20:03:36 +0000 (16:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 12:35:14 +0000 (14:35 +0200)
commit32a1dc1d02eb41196903278f40d6a4aef66ce535
tree153a33004fbb5c453342547e143be0cadf36b9ce
parentca455fafc2ef6a26089ba082b89e5d6e89cb2f8f
mei: amthif: fix request cancel

Currently, all requests cancelled by the user are immediately removed
from the queues. Such removal can cause unexpected behavior in the case
when a request is partially written or a  reply is received after the
request is cancelled.  To resolve this a request is always fully
processed and the result is discarded in case the request was canceled.
This completes the partial fix in commit:
9d04ee1 ("mei: amthif: discard not read messages")

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/amthif.c
drivers/misc/mei/interrupt.c