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)
commit09ee17eb8ea89514c13980c4010bdbbaea8630c2
tree2ca56f35c476ded55324b5bc11f050c7131980dd
parentf91ba190648be4ff127d6aaf3993ac19d66dc2c2
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