mei: don't update offset in write
Subsystems (3)
From: Alexander Usyskin <[email protected]>
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]>
--- drivers/misc/mei/main.c | 1 - 1 file changed, 1 deletion(-)
drivers/misc/mei/main.c +0 -1
@@ -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 ;
Signature · 1 line
2.14.4