aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorShlomo Pongratz <shlomop@mellanox.com>2012-05-24 16:08:07 +0300
committerRoland Dreier <roland@purestorage.com>2012-06-03 23:02:16 -0700
commit3aac6ff16a2097be668975fd51084df2e27e4999 (patch)
tree9802c1555e813a8f2d8fe1cf5757a94c35e4d8ee /drivers/net/ethernet/mellanox
parentMerge tag 'rdma-for-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband (diff)
downloadlinux-dev-3aac6ff16a2097be668975fd51084df2e27e4999.tar.xz
linux-dev-3aac6ff16a2097be668975fd51084df2e27e4999.zip
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/ethernet/mellanox')
0 files changed, 0 insertions, 0 deletions