Skip to content
Commit 27d7c2a0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent df2fc246
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment