Message ID | d62db5aa-c821-367b-6188-e9dc9bd1a0f0@kernel.dk |
---|---|
State | New |
Headers | show |
Series | fs/io_uring.c: Fix uninitialized variable is referenced in io_submit_sqe | expand |
diff --git a/fs/io_uring.c b/fs/io_uring.c index be3d595a607f..c1aaee061dae 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2559,6 +2559,7 @@ static void io_submit_sqe(struct io_ring_ctx *ctx, struct sqe_submit *s, goto err; } + memcpy(&req->submit, s, sizeof(*s)); ret = io_req_set_file(ctx, s, state, req); if (unlikely(ret)) { err_req: