mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
dio: fix use-after-free
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
718deb6b61
commit
06777d308f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue