diff options
| author | Ulf Hansson <ulf.hansson@linaro.org> | 2025-02-28 12:37:14 +0100 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2025-02-28 12:37:14 +0100 |
| commit | c432bdcf39d52cbba7487d4ebfcf735cee59481e (patch) | |
| tree | 5235fe21993c9fb04cbada15ed940961068258c3 /io_uring/io_uring.c | |
| parent | 36ccabe59ddacefd79b7dfa4a66359385f22eed4 (diff) | |
| parent | d082ecbc71e9e0bf49883ee4afd435a77a5101b6 (diff) | |
| download | lwn-c432bdcf39d52cbba7487d4ebfcf735cee59481e.tar.gz lwn-c432bdcf39d52cbba7487d4ebfcf735cee59481e.zip | |
pmdomain: Merge tag 'v6.14-rc4' from Linus into next
Linux 6.14-rc4
Diffstat (limited to 'io_uring/io_uring.c')
| -rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index ceacf6230e34..f7acae5f7e1d 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -2045,6 +2045,8 @@ static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req, req->opcode = 0; return io_init_fail_req(req, -EINVAL); } + opcode = array_index_nospec(opcode, IORING_OP_LAST); + def = &io_issue_defs[opcode]; if (unlikely(sqe_flags & ~SQE_COMMON_FLAGS)) { /* enforce forwards compatibility on users */ |
