]> git.baikalelectronics.ru Git - kernel.git/commit
dlmfs_file_write(): fix the bogosity in handling non-zero *ppos
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 17:45:27 +0000 (13:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 17:45:27 +0000 (13:45 -0400)
commit2ff7e12d11c2da6fddb9b4c770979a5299a8accf
tree1aa45836cbf25923241e5221d070af52edb36867
parent0e6c92ce1d170795a396f8108369eb2c8412797f
dlmfs_file_write(): fix the bogosity in handling non-zero *ppos

'count' is how much you want written, not the final position.
Moreover, it can legitimately be less than the current position...

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dlmfs/dlmfs.c