]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mei: don't update offset in write
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 9 Jul 2018 09:21:44 +0000 (12:21 +0300)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:44:53 +0000 (19:44 -0600)
commit6c5f006ceaa50c2f01268f1e361bcc36c958513c
tree91f1a22150799086ee308091f76e236a946be844
parent7b90b5c25c00b8775826f8ca317e698f58ca98cc
mei: don't update offset in write

BugLink: https://bugs.launchpad.net/bugs/1835972
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/misc/mei/main.c