]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mei: move write cb to completion on credentials failures
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 14 Dec 2016 15:56:52 +0000 (17:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2017 17:22:44 +0000 (18:22 +0100)
commite09ee853c92011860a4bd2fbdf6126f60fc16bd3
tree580aa5b27803e95e08bdf7acebe4fedbd0f5b623
parent5026c9cb0744a9cd40242743ca91a5d712f468c6
mei: move write cb to completion on credentials failures

The credentials handling was pushed to the write handlers
but error handling wasn't done properly.
Move write callbacks to completion queue to destroy them
and to notify a blocked writer about the failure

Fixes: 136698e535cd1 (mei: push credentials inside the irq write handler)
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