]> 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)
commite0b98b7f6522dd13eb84018dbbb41027905a3309
tree1aa45836cbf25923241e5221d070af52edb36867
parent9b8057e7f937f20763a90a8fc2333168af101732
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