Skip to content
Commit 57b7d61c authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

fix the regression from "direct-io: Fix negative return from dio read beyond eof"

commit 2d4594ac

 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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8885e7f3
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