mei: don't update offset in write
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 9 Jul 2018 09:21:44 +0000 (12:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:33 +0000 (09:26 +0200)
commitcfcfbe08d2986ecd5621e98a027e54dd1d549459
treedd87896652282b8daa45c355fb77a94fcae8b71d
parentcf7ab2abc524ec8499fabfa064d9c1f754092908
mei: don't update offset in write

commit a103af1b64d74853a5e08ca6c86aeb0e5c6ca4f1 upstream.

MEI enables writes of complete messages only
while read can be performed in parts, hence
write should not update the file offset to
not break interleaving partial reads with writes.

Cc: <stable@vger.kernel.org>
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