]> asedeno.scripts.mit.edu Git - linux.git/commit
mei: discard messages from not connected client during power down.
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 6 Jun 2018 21:31:48 +0000 (00:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 11:13:07 +0000 (13:13 +0200)
commitb7a020bff31318fc8785e6f96b1d38c1625cf1fb
treeb3b717ca5d92b26afc3b98c73ba02e47eae48a63
parent90d72ce079791399ac255c75728f3c9e747b093d
mei: discard messages from not connected client during power down.

This fixes regression introduced by
commit 8d52af6795c0 ("mei: speed up the power down flow")

In power down or suspend flow a message can still be received
from the FW because the clients fake disconnection.
In normal case we interpret messages w/o destination as corrupted
and link reset is performed in order to clean the channel,
but during power down link reset is already in progress resulting
in endless loop. To resolve the issue under power down flow we
discard messages silently.

Cc: <stable@vger.kernel.org> 4.16+
Fixes: 8d52af6795c0 ("mei: speed up the power down flow")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199541
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/interrupt.c