diff options
author | Shlomo Pongratz <shlomop@mellanox.com> | 2012-05-24 16:08:07 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-06-03 23:02:16 -0700 |
commit | 3aac6ff16a2097be668975fd51084df2e27e4999 (patch) | |
tree | 9802c1555e813a8f2d8fe1cf5757a94c35e4d8ee /drivers/net | |
parent | c23ddf7857bdb2e8001b0a058603497c765a580d (diff) | |
download | op-kernel-dev-3aac6ff16a2097be668975fd51084df2e27e4999.zip op-kernel-dev-3aac6ff16a2097be668975fd51084df2e27e4999.tar.gz |
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 <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions