]> git.baikalelectronics.ru Git - kernel.git/commit
csum_and_copy_..._user(): pass 0xffffffff instead of 0 as initial sum
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Jul 2020 03:51:04 +0000 (23:51 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 20 Aug 2020 19:45:15 +0000 (15:45 -0400)
commit4dc88f1409656b56ecff313be9c3f566f3d3e484
treea3d63171689e7c7eaaeb5f617cd047f6743dc0e3
parentc34623528bd41ca3a101df08916af853337cc066
csum_and_copy_..._user(): pass 0xffffffff instead of 0 as initial sum

Preparation for the change of calling conventions; right now all
callers pass 0 as initial sum.  Passing 0xffffffff instead yields
the values comparable mod 0xffff and guarantees that 0 will not
be returned on success.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c