]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/iommu_type1: replace kfree with kvfree
authorJiacheng Shi <billsjc@sjtu.edu.cn>
Sun, 12 Dec 2021 09:16:00 +0000 (01:16 -0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 21 Dec 2021 19:30:34 +0000 (12:30 -0700)
commit152a7a4a0dd23ea0e0c84e40a4b676b9f7f6dff0
tree7585943e25b117eaafb462e4a1ea3e46cf2eb059
parent0a056f56826baec36485ac7864d87403e6615452
vfio/iommu_type1: replace kfree with kvfree

Variables allocated by kvzalloc should not be freed by kfree.
Because they may be allocated by vmalloc.
So we replace kfree with kvfree here.

Fixes: b7f095dc58ff ("vfio iommu: Implementation of ioctl for dirty pages tracking")
Signed-off-by: Jiacheng Shi <billsjc@sjtu.edu.cn>
Link: https://lore.kernel.org/r/20211212091600.2560-1-billsjc@sjtu.edu.cn
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c