Skip to content
Snippets Groups Projects
Commit d2cac3ec authored by Breno Leitao's avatar Breno Leitao Committed by Jens Axboe
Browse files

io_uring/cmd: return -EOPNOTSUPP if net is disabled


Protect io_uring_cmd_sock() to be called if CONFIG_NET is not set. If
network is not enabled, but io_uring is, then we want to return
-EOPNOTSUPP for any possible socket operation.

This is helpful because io_uring_cmd_sock() can now call functions that
only exits if CONFIG_NET is enabled without having #ifdef CONFIG_NET
inside the function itself.

Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20231016134750.1381153-9-leitao@debian.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ba6e0e5c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment