Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 883381d9 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* 'dev' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
  ext4: fix racy use-after-free in ext4_end_io_dio()
parents 0e500b6d 4c81f045
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2807,8 +2807,8 @@ out:
	spin_unlock_irqrestore(&ei->i_completed_io_lock, flags);

	/* queue the work to convert unwritten extents to written */
	queue_work(wq, &io_end->work);
	iocb->private = NULL;
	queue_work(wq, &io_end->work);

	/* XXX: probably should move into the real I/O completion handler */
	inode_dio_done(inode);