From: Al Viro Date: Thu, 17 Dec 2009 09:52:13 +0000 (-0500) Subject: dio: fix use-after-free X-Git-Tag: 2.1b_release~9901^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06777d308f8f9ddb67798d34bf193101a4bdf06c;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git dio: fix use-after-free Signed-off-by: Al Viro --- diff --git a/fs/direct-io.c b/fs/direct-io.c index 4012885..e82adc2 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)