aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2024-12-06 17:32:59 +0100
committerIlya Dryomov <idryomov@gmail.com>2024-12-16 23:25:44 +0100
commit66e0c4f91461d17d48071695271c824620bed4ef (patch)
treef86c971bfd358e57cd9817644ec293ca854bada9 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parent9abee475803fab6ad59d4f4fc59c6a75374a7d9d (diff)
downloadlinux-66e0c4f91461d17d48071695271c824620bed4ef.tar.gz
linux-66e0c4f91461d17d48071695271c824620bed4ef.tar.bz2
linux-66e0c4f91461d17d48071695271c824620bed4ef.zip
ceph: fix memory leak in ceph_direct_read_write()
The bvecs array which is allocated in iter_get_bvecs_alloc() is leaked and pages remain pinned if ceph_alloc_sparse_ext_map() fails. There is no need to delay the allocation of sparse_ext map until after the bvecs array is set up, so fix this by moving sparse_ext allocation a bit earlier. Also, make a similar adjustment in __ceph_sync_read() for consistency (a leak of the same kind in __ceph_sync_read() has been addressed differently). Cc: stable@vger.kernel.org Fixes: 03bc06c7b0bd ("ceph: add new mount option to enable sparse reads") Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
0 files changed, 0 insertions, 0 deletions