8000 Merge tag 'configfs-for-4.7' of git://git.infradead.org/users/hch/con… · bsd-unix/linux@4c2a849 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c2a849

Browse files
committed
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
2 parents 076501f + f860898 commit 4c2a849

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/configfs/file.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,6 @@ configfs_write_bin_file(struct file *file, const char __user *buf,
357357

358358
len = simple_write_to_buffer(buffer->bin_buffer,
359359
buffer->bin_buffer_size, ppos, buf, count);
360-
if (len > 0)
361-
*ppos += len;
362360
out:
363361
mutex_unlock(&buffer->mutex);
364362
return len;

0 commit comments

Comments
 (0)
0