Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull vfs iov_iter regression fix from Al Viro:
"Fix for braino in 'fold checks into iterate_and_advance()'"

* 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
do "fold checks into iterate_and_advance()" right

+1 -1
+1 -1
lib/iov_iter.c
··· 101 101 #define iterate_and_advance(i, n, v, I, B, K) { \ 102 102 if (unlikely(i->count < n)) \ 103 103 n = i->count; \ 104 - if (n) { \ 104 + if (i->count) { \ 105 105 size_t skip = i->iov_offset; \ 106 106 if (unlikely(i->type & ITER_BVEC)) { \ 107 107 const struct bio_vec *bvec; \