Hi,
Thanks for your patch. Please subscribe the kernel@openeuler.org and kernel-discuss@openeuler.org mailing list before sending patches, or your patches would be blocked.
Please resend this patch, and specific the right branch.
Welcome to start a topic at openEuler kernel sig meeting via seeding mail to kernel-discuss@openeuler.org。
--- 可以通过openEuler kernel 小助手,参加openEuler kernel SIG 微信群。 https://openeuler.gitee.io/kernel-portal/img/wechat/openEuler_kernel_helper_...
On 2021/12/12 18:14, Jiacheng Shi wrote:
From: billsjchw billsjc@126.com
Variables allocated by kvmalloc should not be freed by kfree. Because they may be allocated by vmalloc. So we replace kfree with kvfree here.
Signed-off-by: Jiacheng Shi billsjc@sjtu.edu.cn
drivers/vfio/vfio_iommu_type1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index 5daceec48811..6811a85109aa 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio/vfio_iommu_type1.c @@ -1150,7 +1150,7 @@ static int vfio_iova_dirty_log_clear(u64 __user *bitmap, }
out:
- kfree(bitmap_buffer);
- kvfree(bitmap_buffer); return ret;
}