aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorQingyue Zhang <[email protected]>2025-08-27 11:43:39 +0000
committerJens Axboe <[email protected]>2025-08-27 14:39:44 +0000
commitc64eff368ac676e8540344d27a3de47e0ad90d21 (patch)
tree089c55d83a80667ce71b96721acfe9a0d5eedd44 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentio_uring: clear ->async_data as part of normal init (diff)
downloadkernel-c64eff368ac676e8540344d27a3de47e0ad90d21.tar.gz
kernel-c64eff368ac676e8540344d27a3de47e0ad90d21.zip
io_uring/kbuf: fix signedness in this_len calculation
When importing and using buffers, buf->len is considered unsigned. However, buf->len is converted to signed int when committing. This can lead to unexpected behavior if the buffer is large enough to be interpreted as a negative value. Make min_t calculation unsigned. Fixes: ae98dbf43d75 ("io_uring/kbuf: add support for incremental buffer consumption") Co-developed-by: Suoxing Zhang <[email protected]> Signed-off-by: Suoxing Zhang <[email protected]> Signed-off-by: Qingyue Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions