From: Dan Carpenter Date: Wed, 5 Dec 2012 17:01:24 +0000 (+0300) Subject: vfs: clear to the end of the buffer on partial buffer reads X-Git-Tag: v3.7~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d7c2a006a81c04fab00b8cd81b99af3b32738d;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed