diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-17 04:52:13 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-17 04:52:13 -0500 |
| commit | 06777d308f8f9ddb67798d34bf193101a4bdf06c (patch) | |
| tree | defc74a60dc75d8fd2b860a3222de4a2e8ea4006 | |
| parent | 718deb6b61e34c200c1f2b706176d9aac334cb2d (diff) | |
dio: fix use-after-free
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/direct-io.c | 2 |
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, | |||
| 1206 | * NOTE: filesystems with their own locking have to handle this | 1206 | * NOTE: filesystems with their own locking have to handle this |
| 1207 | * on their own. | 1207 | * on their own. |
| 1208 | */ | 1208 | */ |
| 1209 | if (dio->flags & DIO_LOCKING) { | 1209 | if (flags & DIO_LOCKING) { |
| 1210 | if (unlikely((rw & WRITE) && retval < 0)) { | 1210 | if (unlikely((rw & WRITE) && retval < 0)) { |
| 1211 | loff_t isize = i_size_read(inode); | 1211 | loff_t isize = i_size_read(inode); |
| 1212 | if (end > isize) | 1212 | if (end > isize) |
