mlx4_core: Fix thinko in QP destroy (incorrect bitmap_free)
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 14 Nov 2007 14:33:27 +0000 (16:33 +0200)
committerRoland Dreier <rolandd@cisco.com>
Wed, 14 Nov 2007 16:20:03 +0000 (08:20 -0800)
commite383d19e90cfbbf8e00512d44194ce175b3f60a2
treefb1c2b81505605998cca9062d10b816784f6559f
parent9a7666494bac60b99d2bd7d904bd22e8c9b1e3f7
mlx4_core: Fix thinko in QP destroy (incorrect bitmap_free)

Fix thinko in commit eaf559bf ("mlx4_core: Don't free special QPs in
QP number bitmap").  The old commit had the logic exactly backwards
and ended up freeing *only* special QPs, which not only left the
original bug in place but also introduced the problem that the QP
number bitmap would get full after a while.

Found by Dotan Barak of Mellanox.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/qp.c