projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ad7862
)
fix the regression from "direct-io: Fix negative return from dio read beyond eof"
author
Al Viro
<
[email protected]
>
Tue, 8 Dec 2015 17:22:47 +0000
(12:22 -0500)
committer
Al Viro
<
[email protected]
>
Tue, 8 Dec 2015 20:02:42 +0000
(15:02 -0500)
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:
[email protected]
Signed-off-by: Al Viro <
[email protected]
>
fs/direct-io.c
patch
|
blob
|
history
diff --git
a/fs/direct-io.c
b/fs/direct-io.c
index 1c75a3a07f8f02a2ddd3b85e02c74866ff5b1f08..602e8441bc0fb6b094ec96dfb3273ff73b8b1506 100644
(file)
--- a/
fs/direct-io.c
+++ b/
fs/direct-io.c
@@
-1175,6
+1175,7
@@
do_blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
if (dio->flags & DIO_LOCKING)
mutex_unlock(&inode->i_mutex);
kmem_cache_free(dio_cache, dio);
+ retval = 0;
goto out;
}