summaryrefslogtreecommitdiffstats
path: root/fs/direct-io.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-12-17 10:52:13 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-17 10:52:13 +0100
commit06777d308f8f9ddb67798d34bf193101a4bdf06c (patch)
treedefc74a60dc75d8fd2b860a3222de4a2e8ea4006 /fs/direct-io.c
parentFix breakage in shmem.c (diff)
downloadlinux-06777d308f8f9ddb67798d34bf193101a4bdf06c.tar.xz
linux-06777d308f8f9ddb67798d34bf193101a4bdf06c.zip
dio: fix use-after-free
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r--fs/direct-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c
index 4012885d027f..e82adc2debb7 100644
--- 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)