]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mei: move host_clients_map cleanup to device init
authorAlexander Usyskin <alexander.usyskin@intel.com>
Thu, 17 Oct 2013 14:20:22 +0000 (17:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Oct 2013 02:53:46 +0000 (19:53 -0700)
commiteec86b8e85309a2cb0b33bcb361c67d81ebed474
tree3991079f6ce61bc45da313fa11993dc4cd54b683
parented6f7ac1dcae0b95ef2946067beb4ffaba415119
mei: move host_clients_map cleanup to device init

Move host_clients_map cleanup from host client init to device init.

This fixes bug where we cleaned up the bitmask that servers as pool for
host client ids while file descriptors are kept open during suspend.
On resume a new connection will be assigned id that is already taken
by opened file descriptor. Consequently read/write will fail due to
mismatched book keeping.

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/client.c
drivers/misc/mei/init.c