diff --git a/fs/aio.c b/fs/aio.c index 9527ededa66929ccf18bb456d5997b0dd9489bf0..134e5b635d643da8868b477a0990e5d3cdb4077e 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -1443,8 +1443,8 @@ 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\n"); - return -EINVAL; + pr_debug("aio ioprio check cap error: %d\n", ret); + return ret; } req->ki_ioprio = iocb->aio_reqprio;