summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-09-11 09:46:29 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-09-11 09:46:28 -0700
commit55056d7ec98ae618c20ae68d34b80a334946218d (patch)
treed4e2ad80a0c960ab1f5375c4702244da97350dc5
parentecb710876b0d1075be29a1bcb771b42fa5d759bc (diff)
parentfc468d503559ec90e75ddba89ddf7aa6402d3258 (diff)
Merge "aio: hold an extra file reference over AIO read/write operations"
-rw-r--r--fs/aio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/aio.c b/fs/aio.c
index c4b508605bab..3fe07571f942 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1470,6 +1470,7 @@ rw_common:
len = ret;
+ get_file(file);
if (rw == WRITE)
file_start_write(file);
@@ -1477,6 +1478,7 @@ rw_common:
if (rw == WRITE)
file_end_write(file);
+ fput(file);
kfree(iovec);
break;