aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2024-12-12 15:01:52 +0000
committerJens Axboe <[email protected]>2024-12-12 15:01:52 +0000
commit99d6af6e8a22b792e1845b186f943cd10bb4b7b0 (patch)
treec7af221e463e44672298b000de646274e9eba704 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentio_uring: Change res2 parameter type in io_uring_cmd_done (diff)
downloadkernel-99d6af6e8a22b792e1845b186f943cd10bb4b7b0.tar.gz
kernel-99d6af6e8a22b792e1845b186f943cd10bb4b7b0.zip
io_uring/rsrc: don't put/free empty buffers
If cloning of buffers fail and we have to put the ones already grabbed, check for NULL buffers and skip those. They used to be dummy ubufs, but now they are just NULL and that should be checked before reaping them. Reported-by: chase xd <[email protected]> Link: https://lore.kernel.org/io-uring/CADZouDQ7TcKn8gz8_efnyAEp1JvU1ktRk8PWz-tO0FXUoh8VGQ@mail.gmail.com/ Fixes: d50f94d761a5 ("io_uring/rsrc: get rid of the empty node and dummy_ubuf") Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions