summaryrefslogtreecommitdiff
path: root/scripts/macro_checker.py
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-09-13 18:31:54 +0300
committerAlex Williamson <alex.williamson@redhat.com>2025-09-19 23:48:58 +0300
commitacb59a4bb8ed34e738a4c3463127bf3f6b5e11a9 (patch)
tree75ff1c9c898f3eda1a8bec89075724729b1dc7e4 /scripts/macro_checker.py
parent16df67f2189a71a8310bcebddb87ed569e8352be (diff)
downloadlinux-acb59a4bb8ed34e738a4c3463127bf3f6b5e11a9.tar.xz
vfio/pds: replace bitmap_free with vfree
host_seq_bmp is allocated with vzalloc but is currently freed with bitmap_free, which uses kfree internally. This mismach prevents the resource from being released properly and may result in memory leaks or other issues. Fix this by freeing host_seq_bmp with vfree to match the vzalloc allocation. Fixes: f232836a9152 ("vfio/pds: Add support for dirty page tracking") Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Link: https://lore.kernel.org/r/20250913153154.1028835-1-zilin@seu.edu.cn Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts/macro_checker.py')
0 files changed, 0 insertions, 0 deletions