diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2018-07-09 12:21:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-12 16:44:57 +0300 |
commit | a103af1b64d74853a5e08ca6c86aeb0e5c6ca4f1 (patch) | |
tree | 277d4d9deb9253437bf0a69e2638b2214b87e82f /drivers/misc/mei | |
parent | cf1ed2c59b982d892b7c4d25b3dea2421cc5aa08 (diff) | |
download | linux-a103af1b64d74853a5e08ca6c86aeb0e5c6ca4f1.tar.xz |
mei: don't update offset in write
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>
Diffstat (limited to 'drivers/misc/mei')
-rw-r--r-- | drivers/misc/mei/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index f690918f7817..302ba7a63bd2 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c @@ -312,7 +312,6 @@ static ssize_t mei_write(struct file *file, const char __user *ubuf, } } - *offset = 0; cb = mei_cl_alloc_cb(cl, length, MEI_FOP_WRITE, file); if (!cb) { rets = -ENOMEM; |