]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/mlx4/qp.c
mlx4_core: Fix thinko in QP destroy (incorrect bitmap_free)
[linux-2.6-omap-h63xx.git] / drivers / net / mlx4 / qp.c
index cc4b1be182196c8b11836def9387215272d4bba8..42b47639c81cb6f4753ea728bd86d81d060c5792 100644 (file)
@@ -240,7 +240,7 @@ void mlx4_qp_free(struct mlx4_dev *dev, struct mlx4_qp *qp)
        mlx4_table_put(dev, &qp_table->auxc_table, qp->qpn);
        mlx4_table_put(dev, &qp_table->qp_table, qp->qpn);
 
-       if (qp->qpn < dev->caps.sqp_start + 8)
+       if (qp->qpn >= dev->caps.sqp_start + 8)
                mlx4_bitmap_free(&qp_table->bitmap, qp->qpn);
 }
 EXPORT_SYMBOL_GPL(mlx4_qp_free);