Commit 4c2a8499 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'configfs-for-4.7' of git://git.infradead.org/users/hch/configfs

Pull configfs fix from Christoph Hellwig:
 "A fix from Marek for ppos handling in configfs_write_bin_file, which
  was introduced in Linux 4.5, but didn't have any users until recently"

* tag 'configfs-for-4.7' of git://git.infradead.org/users/hch/configfs:
  configfs: Remove ppos increment in configfs_write_bin_file
parents 076501ff f8608985
...@@ -357,8 +357,6 @@ configfs_write_bin_file(struct file *file, const char __user *buf, ...@@ -357,8 +357,6 @@ configfs_write_bin_file(struct file *file, const char __user *buf,
len = simple_write_to_buffer(buffer->bin_buffer, len = simple_write_to_buffer(buffer->bin_buffer,
buffer->bin_buffer_size, ppos, buf, count); buffer->bin_buffer_size, ppos, buf, count);
if (len > 0)
*ppos += len;
out: out:
mutex_unlock(&buffer->mutex); mutex_unlock(&buffer->mutex);
return len; return len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment