summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-05-25 15:59:09 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-25 15:59:09 -0700
commit0985b65d3ba2c09f10a594b73df45c1f7f68d317 (patch)
tree1d03cafe5960e3440b3a6e4a16b8e0d09313957f /lib
parent55c1c7b2b66e3011f981d81aaf21fa810935908a (diff)
parent19f18459330f4a65fb0b58e77fc58ceceecb1839 (diff)
downloadop-kernel-dev-0985b65d3ba2c09f10a594b73df45c1f7f68d317.zip
op-kernel-dev-0985b65d3ba2c09f10a594b73df45c1f7f68d317.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/iov_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
index 28cb431..0cd5227 100644
--- a/lib/iov_iter.c
+++ b/lib/iov_iter.c
@@ -101,7 +101,7 @@
#define iterate_and_advance(i, n, v, I, B, K) { \
if (unlikely(i->count < n)) \
n = i->count; \
- if (n) { \
+ if (i->count) { \
size_t skip = i->iov_offset; \
if (unlikely(i->type & ITER_BVEC)) { \
const struct bio_vec *bvec; \
OpenPOWER on IntegriCloud