Commit 9a6d9a62 authored by Adam Manzanares's avatar Adam Manzanares Committed by Al Viro

fs: aio ioprio use ioprio_check_cap ret val

Previously the value was ignored.
Signed-off-by: default avatarAdam Manzanares <adam.manzanares@wdc.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent b0966e7b
...@@ -1443,8 +1443,8 @@ static int aio_prep_rw(struct kiocb *req, struct iocb *iocb) ...@@ -1443,8 +1443,8 @@ static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
*/ */
ret = ioprio_check_cap(iocb->aio_reqprio); ret = ioprio_check_cap(iocb->aio_reqprio);
if (ret) { if (ret) {
pr_debug("aio ioprio check cap error\n"); pr_debug("aio ioprio check cap error: %d\n", ret);
return -EINVAL; return ret;
} }
req->ki_ioprio = iocb->aio_reqprio; req->ki_ioprio = iocb->aio_reqprio;
......
Markdown is supported
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