]> git.baikalelectronics.ru Git - kernel.git/commit
AMD IOMMU: fix possible race while accessing iommu->need_sync
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 3 Dec 2008 11:19:27 +0000 (12:19 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 3 Dec 2008 11:20:46 +0000 (12:20 +0100)
commitc75e00ff37d14c2e5a739ab7ffda93d1245a3b10
tree2ca56f35c476ded55324b5bc11f050c7131980dd
parenta259b7e2de194e3dc25afefe82979de1246f4e74
AMD IOMMU: fix possible race while accessing iommu->need_sync

The access to the iommu->need_sync member needs to be protected by the
iommu->lock. Otherwise this is a possible race condition. Fix it with
this patch.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c