diff options
author | Alexander Usyskin <[email protected]> | 2018-07-09 12:21:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-07-12 15:44:57 +0200 |
commit | a103af1b64d74853a5e08ca6c86aeb0e5c6ca4f1 (patch) | |
tree | 277d4d9deb9253437bf0a69e2638b2214b87e82f | |
parent | cf1ed2c59b982d892b7c4d25b3dea2421cc5aa08 (diff) |
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: <[email protected]>
Signed-off-by: Alexander Usyskin <[email protected]>
Signed-off-by: Tomas Winkler <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-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; |