Skip to content

Commit 9a6d9a6

Browse files
nmtadamAl Viro
authored andcommitted
fs: aio ioprio use ioprio_check_cap ret val
Previously the value was ignored. Signed-off-by: Adam Manzanares <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent b0966e7 commit 9a6d9a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/aio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,8 @@ static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
14431443
*/
14441444
ret = ioprio_check_cap(iocb->aio_reqprio);
14451445
if (ret) {
1446-
pr_debug("aio ioprio check cap error\n");
1447-
return -EINVAL;
1446+
pr_debug("aio ioprio check cap error: %d\n", ret);
1447+
return ret;
14481448
}
14491449

14501450
req->ki_ioprio = iocb->aio_reqprio;

0 commit comments

Comments
 (0)