Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'iommu-fix-v6.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu

Pull iommu fix from Joerg Roedel:

- Fix potential memory leak in AMD IOMMU domain allocation path

* tag 'iommu-fix-v6.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
iommu/amd: Fix possible memory leak of 'domain'

+4 -4
+4 -4
drivers/iommu/amd/iommu.c
··· 2078 2078 int mode = DEFAULT_PGTABLE_LEVEL; 2079 2079 int ret; 2080 2080 2081 - domain = kzalloc(sizeof(*domain), GFP_KERNEL); 2082 - if (!domain) 2083 - return NULL; 2084 - 2085 2081 /* 2086 2082 * Force IOMMU v1 page table when iommu=pt and 2087 2083 * when allocating domain for pass-through devices. ··· 2092 2096 } else { 2093 2097 return NULL; 2094 2098 } 2099 + 2100 + domain = kzalloc(sizeof(*domain), GFP_KERNEL); 2101 + if (!domain) 2102 + return NULL; 2095 2103 2096 2104 switch (pgtable) { 2097 2105 case AMD_IOMMU_V1: