aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/lib/kdoc/kdoc_parser.py
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 /scripts/lib/kdoc/kdoc_parser.py
parentceph: improve error handling and short/overflow-read logic in __ceph_sync_read() (diff)
downloadwireguard-linux-66e0c4f91461d17d48071695271c824620bed4ef.tar.xz
wireguard-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 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions