aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/msg_ring.c
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <[email protected]>2024-06-19 02:06:19 +0000
committerJens Axboe <[email protected]>2024-06-19 14:58:00 +0000
commit6bc9199d0c84f5cd72922223231c7708698059a2 (patch)
tree8f2d7a800df33594bd35d424ea3d9dc7808989e5 /io_uring/msg_ring.c
parentio_uring: Fix probe of disabled operations (diff)
downloadkernel-6bc9199d0c84f5cd72922223231c7708698059a2.tar.gz
kernel-6bc9199d0c84f5cd72922223231c7708698059a2.zip
io_uring: Allocate only necessary memory in io_probe
We write at most IORING_OP_LAST entries in the probe buffer, so we don't need to allocate temporary space for more than that. As a side effect, we no longer can overflow "size". Signed-off-by: Gabriel Krisman Bertazi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'io_uring/msg_ring.c')
0 files changed, 0 insertions, 0 deletions