]> git.baikalelectronics.ru Git - kernel.git/commit
AMD IOMMU: free domain bitmap with its allocation order
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 17 Sep 2008 10:19:58 +0000 (12:19 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:27 +0000 (12:59 +0200)
commite174a04b44b99664fa77629d5d959eee7774982c
treef7bb361c7b3f7752520dfb78fbe762316e88eb5c
parent0901dd8eb0708c642319a7a1123c0b3690480156
AMD IOMMU: free domain bitmap with its allocation order

The amd_iommu_pd_alloc_bitmap is allocated with a calculated order and
freed with order 1. This is not a bug since the calculated order always
evaluates to 1, but its unclean code. So replace the 1 with the
calculation in the release path.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu_init.c