]> err.no Git - linux-2.6/blobdiff - arch/x86_64/kernel/pci-gart.c
[PATCH] x86_64: Fix a race in the free_iommu path
[linux-2.6] / arch / x86_64 / kernel / pci-gart.c
index a6c01e121266c8f521e1e7336c42cf41735e4afa..9d3d76c85ae7160ea9def9af5ccb4d133370ffbe 100644 (file)
@@ -112,10 +112,6 @@ static unsigned long alloc_iommu(int size)
 static void free_iommu(unsigned long offset, int size)
 { 
        unsigned long flags;
-       if (size == 1) { 
-               clear_bit(offset, iommu_gart_bitmap); 
-               return;
-       }
        spin_lock_irqsave(&iommu_bitmap_lock, flags);
        __clear_bit_string(iommu_gart_bitmap, offset, size);
        spin_unlock_irqrestore(&iommu_bitmap_lock, flags);