summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd/nested.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/amd/nested.c')
-rw-r--r--drivers/iommu/amd/nested.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd/nested.c b/drivers/iommu/amd/nested.c
index 1a5ff73db628..5b902598e68a 100644
--- a/drivers/iommu/amd/nested.c
+++ b/drivers/iommu/amd/nested.c
@@ -68,7 +68,7 @@ static void *gdom_info_load_or_alloc_locked(struct xarray *xa, unsigned long ind
return elm;
xa_unlock(xa);
- elm = kzalloc_obj(struct guest_domain_mapping_info, GFP_KERNEL);
+ elm = kzalloc_obj(struct guest_domain_mapping_info);
xa_lock(xa);
if (!elm)
return ERR_PTR(-ENOMEM);
@@ -102,7 +102,7 @@ amd_iommu_alloc_domain_nested(struct iommufd_viommu *viommu, u32 flags,
if (user_data->type != IOMMU_HWPT_DATA_AMD_GUEST)
return ERR_PTR(-EOPNOTSUPP);
- ndom = kzalloc_obj(*ndom, GFP_KERNEL);
+ ndom = kzalloc_obj(*ndom);
if (!ndom)
return ERR_PTR(-ENOMEM);