aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorAkhilesh Patil <[email protected]>2025-08-10 13:34:01 +0000
committerJason Gunthorpe <[email protected]>2025-08-18 14:10:40 +0000
commit8fe8a092043f28d3c8e467cb2bbfe1e1ccf7f996 (patch)
tree6b8435d1e7407b38bdac36f2fcb63d9f3f358095 /scripts/generate_rust_target.rs
parentLinux 6.17-rc2 (diff)
downloadkernel-8fe8a092043f28d3c8e467cb2bbfe1e1ccf7f996.tar.gz
kernel-8fe8a092043f28d3c8e467cb2bbfe1e1ccf7f996.zip
iommufd: viommu: free memory allocated by kvcalloc() using kvfree()
Use kvfree() instead of kfree() to free pages allocated by kvcalloc() in iommufs_hw_queue_alloc_phys() to fix potential memory corruption. Ensure the memory is properly freed, as kvcalloc may internally use vmalloc or kmalloc depending on available memory in the system. Fixes: 2238ddc2b056 ("iommufd/viommu: Add IOMMUFD_CMD_HW_QUEUE_ALLOC ioctl") Link: https://patch.msgid.link/r/[email protected] Signed-off-by: Akhilesh Patil <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Nicolin Chen <[email protected]> Reviewed-by: Pranjal Shrivastava <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions