Skip to content

Commit b58f214

Browse files
committed
Merge tag 'iommu-fixes-v5.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull iommu fixes from Joerg Roedel: - Two build fixes for issues introduced during the merge window - A fix for a reference count leak in an error path of iommu_group_alloc() * tag 'iommu-fixes-v5.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu: Fix reference count leak in iommu_group_alloc. x86: Hide the archdata.iommu field behind generic IOMMU_API ia64: Hide the archdata.iommu field behind generic IOMMU_API
2 parents 75574f1 + 7cc3161 commit b58f214

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/ia64/include/asm/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define _ASM_IA64_DEVICE_H
77

88
struct dev_archdata {
9-
#ifdef CONFIG_INTEL_IOMMU
9+
#ifdef CONFIG_IOMMU_API
1010
void *iommu; /* hook for IOMMU specific extension */
1111
#endif
1212
};

arch/x86/include/asm/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define _ASM_X86_DEVICE_H
44

55
struct dev_archdata {
6-
#if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU)
6+
#ifdef CONFIG_IOMMU_API
77
void *iommu; /* hook for IOMMU specific extension */
88
#endif
99
};

drivers/iommu/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ struct iommu_group *iommu_group_alloc(void)
510510
NULL, "%d", group->id);
511511
if (ret) {
512512
ida_simple_remove(&iommu_group_ida, group->id);
513-
kfree(group);
513+
kobject_put(&group->kobj);
514514
return ERR_PTR(ret);
515515
}
516516

0 commit comments

Comments
 (0)