mei: remove support for broken parallel read
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 7 Feb 2017 22:41:45 +0000 (00:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:20:44 +0000 (15:20 +0100)
commitcb97fbbcac15982406e0c74cd5512a8b6fcf10b3
tree67b264d59a72d79e94302b760f591348ecfc0d70
parentdd37eed7db0f7607fa41887c11c1e428faa15d0c
mei: remove support for broken parallel read

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.

Cc: <stable@vger.kernel.org> #4.9
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>
drivers/misc/mei/main.c