projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1ed2c
)
mei: don't update offset in write
author
Alexander Usyskin
<
[email protected]
>
Mon, 9 Jul 2018 09:21:44 +0000
(12:21 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 12 Jul 2018 13:44:57 +0000
(15:44 +0200)
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]
>
drivers/misc/mei/main.c
patch
|
blob
|
history
diff --git
a/drivers/misc/mei/main.c
b/drivers/misc/mei/main.c
index f690918f7817b15543042319489fa9827e6a68e6..302ba7a63bd2d0289b465bee4a8a21d0fed80d26 100644
(file)
--- 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;