projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b7d1b
)
aio: fix failure to put the file pointer
author
Jens Axboe
<axboe@kernel.dk>
Sat, 17 Nov 2018 14:43:42 +0000
(07:43 -0700)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 17 Nov 2018 15:05:07 +0000
(10:05 -0500)
If the ioprio capability check fails, we return without putting
the file pointer.
Fixes:
d9a08a9e616b
("fs: Add aio iopriority support")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c
patch
|
blob
|
history
diff --git
a/fs/aio.c
b/fs/aio.c
index
301e631
..
97f9835
100644
(file)
--- a/
fs/aio.c
+++ b/
fs/aio.c
@@
-1436,6
+1436,7
@@
static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
ret = ioprio_check_cap(iocb->aio_reqprio);
if (ret) {
pr_debug("aio ioprio check cap error: %d\n", ret);
+ fput(req->ki_filp);
return ret;
}