linux-stable/drivers/infiniband/hw
Roland Dreier 4af3ce0de0 IB/mlx4: Fix shutdown crash accessing a non-existent bitmap
Commit cfcde11c3d ("IB/mlx4: Use flow counters on IBoE ports") added
code that sets elements of counters[] to -1 if no counter is allocated,
but then goes ahead and passes every entry to mlx4_counter_free() on
shutdown.  This is a bad idea, especially if MLX4_DEV_CAP_FLAG_COUNTERS
isn't set so there isn't even an underlying bitmap to free from.

Tested-by: Sean Hefty <sean.hefty@intel.com>
Cc: <stable@kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2011-12-06 10:47:37 -08:00
..
amso1100
cxgb3 IB: Fix RCU lockdep splats 2011-11-29 13:37:11 -08:00
cxgb4 Merge branches 'cxgb4', 'ipoib', 'misc' and 'qib' into for-next 2011-11-29 18:01:53 -08:00
ehca
ipath Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
mlx4 IB/mlx4: Fix shutdown crash accessing a non-existent bitmap 2011-12-06 10:47:37 -08:00
mthca Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
nes IB: Fix RCU lockdep splats 2011-11-29 13:37:11 -08:00
qib IB/qib: Fix over-scheduling of QSFP work 2011-11-28 12:17:33 -08:00