]> git.baikalelectronics.ru Git - kernel.git/commit
fix the regression from "direct-io: Fix negative return from dio read beyond eof"
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Dec 2015 17:22:47 +0000 (12:22 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Dec 2015 20:02:42 +0000 (15:02 -0500)
commit4d7bb03009167db59f4f54ede2da2c80499ff70f
tree0cb700c7c026748b47afee0b25c8d3c3e255b6c6
parent59438c63749f62c0aff6978e724b31fbcd25a21b
fix the regression from "direct-io: Fix negative return from dio read beyond eof"

Sure, it's better to bail out of past-the-eof read and return 0 than return
a bogus negative value on such.  Only we'd better make sure we are bailing out
with 0 and not -ENOMEM...

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/direct-io.c