Skip to content
Commit 0b944d3a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro
Browse files

aio: hold an extra file reference over AIO read/write operations



Otherwise we might dereference an already freed file and/or inode
when aio_complete is called before we return from the read_iter or
write_iter method.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a909d3e6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment