diff options
author | Shlomo Pongratz <[email protected]> | 2012-05-24 16:08:07 +0300 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2012-06-03 23:02:16 -0700 |
commit | 3aac6ff16a2097be668975fd51084df2e27e4999 (patch) | |
tree | 9802c1555e813a8f2d8fe1cf5757a94c35e4d8ee /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | c23ddf7857bdb2e8001b0a058603497c765a580d (diff) |
IB/mlx4: Fix EQ deallocation in legacy mode
Commit e605b743f33d ("IB/mlx4: Increase the number of vectors (EQs)
available for ULPs") didn't handle correctly the case where there
aren't enough MSI-X vectors to increase the number of EQs, so only the
legacy EQs are allocated. This results in an attempt to memset() to
zero the EQ table which was never allocated and a kernel crash.
Fix this by checking in the teardown flow if the table of EQs was ever
allocated. Also remove some unneeded setting to zero of the EQ
related fields in struct mlx4_ib_dev.
Signed-off-by: Shlomo Pongratz <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions