]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:37 +0000 (15:43 -0700)
commit06254faae3c968d67a34961fdff0c800015d81d8
treed1e7635182e457002676da91b49120a57fca8c6c
parent900338c42e449dc1e0a938dc6e369c159f3411bb
fix the regression from "direct-io: Fix negative return from dio read beyond eof"

Orabug: stable_rc4

commit 2d4594acbf6d8f75a27f3578476b6a27d8b13ebb upstream.

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...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 57b7d61c2d89e3e0665b9cdcc8fb73b08d10f0c2)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/direct-io.c