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)
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>

No differences found