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:
718deb6
)
dio: fix use-after-free
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 09:52:13 +0000
(
04:52
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 09:52:13 +0000
(
04:52
-0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/direct-io.c
patch
|
blob
|
history
diff --git
a/fs/direct-io.c
b/fs/direct-io.c
index 4012885d027fd7bd054acb2ee0404b2b82f8eda2..e82adc2debb73de9ae9ca916e65c6e2bed317ef2 100644
(file)
--- a/
fs/direct-io.c
+++ b/
fs/direct-io.c
@@
-1206,7
+1206,7
@@
__blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode,
* NOTE: filesystems with their own locking have to handle this
* on their own.
*/
- if (
dio->
flags & DIO_LOCKING) {
+ if (flags & DIO_LOCKING) {
if (unlikely((rw & WRITE) && retval < 0)) {
loff_t isize = i_size_read(inode);
if (end > isize)