commit | 27d7c2a006a81c04fab00b8cd81b99af3b32738d | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Dec 05 20:01:24 2012 +0300 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Dec 05 10:32:59 2012 -0800 |
tree | d04b7860b79d70b5c1ebedc964ffa1cc8fee261e | |
parent | df2fc246c8ee8b6067af1fa55d3bc23107457f61 [diff] |
vfs: clear to the end of the buffer on partial buffer reads READ is zero so the "rw & READ" test is always false. The intended test was "((rw & RW_MASK) == READ)". Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>