diff options
author | Roland Dreier <roland@purestorage.com> | 2011-12-06 10:47:37 -0800 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-12-06 10:47:37 -0800 |
commit | 4af3ce0de0c12e5c17811eaefad36ab8e146c0fd (patch) | |
tree | e243880d497d872c1c258799355598c13c00b737 /lib/checksum.c | |
parent | 5611cc4572e889b62a7b4c72a413536bf6a9c416 (diff) | |
download | blackbird-obmc-linux-4af3ce0de0c12e5c17811eaefad36ab8e146c0fd.tar.gz blackbird-obmc-linux-4af3ce0de0c12e5c17811eaefad36ab8e146c0fd.zip |
IB/mlx4: Fix shutdown crash accessing a non-existent bitmap
Commit cfcde11c3d7a ("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>
Diffstat (limited to 'lib/checksum.c')
0 files changed, 0 insertions, 0 deletions