提交 9a6d9a62 编写于 作者: A Adam Manzanares 提交者: Al Viro

fs: aio ioprio use ioprio_check_cap ret val

Previously the value was ignored.
Signed-off-by: NAdam Manzanares <adam.manzanares@wdc.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册