Commit f48b53a8 authored by Eric Auger's avatar Eric Auger Committed by Xie XiuQi
Browse files

iommu/vt-d: Fix leak in intel_pasid_alloc_table on error path



mainline inclusion
from mainline-v5.2-rc1
commit dca4d60f
category: bugfix
bugzilla: 15933
CVE: NA

-------------------------------------------------------------------------

If alloc_pages_node() fails, pasid_table is leaked. Free it.

Fixes: cc580e41 ("iommu/vt-d: Per PCI device pasid table interfaces")

Signed-off-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 08218704
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment