mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs
* 'for-linus' of git://oss.sgi.com/xfs/xfs: xfs: fix a use after free in xfs_end_io_direct_write
This commit is contained in:
commit
53d872e995
1 changed files with 2 additions and 1 deletions
|
@ -1300,6 +1300,7 @@ xfs_end_io_direct_write(
|
|||
bool is_async)
|
||||
{
|
||||
struct xfs_ioend *ioend = iocb->private;
|
||||
struct inode *inode = ioend->io_inode;
|
||||
|
||||
/*
|
||||
* blockdev_direct_IO can return an error even after the I/O
|
||||
|
@ -1331,7 +1332,7 @@ xfs_end_io_direct_write(
|
|||
}
|
||||
|
||||
/* XXX: probably should move into the real I/O completion handler */
|
||||
inode_dio_done(ioend->io_inode);
|
||||
inode_dio_done(inode);
|
||||
}
|
||||
|
||||
STATIC ssize_t
|
||||
|
|
Loading…
Reference in a new issue