]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mei: remove support for broken parallel read
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 7 Feb 2017 22:41:45 +0000 (00:41 +0200)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commitc799b64d55caa463bb8d0328dce2a7554f758eaf
tree3d47ae56dc773773560246458ad5011de34f2885
parentf3bbd4420c5f534e299d27a6dc5163cb1aecc5c8
mei: remove support for broken parallel read

BugLink: http://bugs.launchpad.net/bugs/1672544
commit cb97fbbcac15982406e0c74cd5512a8b6fcf10b3 upstream.

Parallel reads from multiple threads on a file descriptor
are not well defined and racy. It is safer to return to original
behavior and simply fail the additional read.
The solution is to remove request for next read credit.

Fixes: ff1586a7ea57 ("mei: enqueue consecutive reads")
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/misc/mei/main.c