]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnx2x: limit number of interrupt vectors for 57711
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 5 Jan 2014 16:33:50 +0000 (18:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2014 01:22:24 +0000 (20:22 -0500)
commite848582cee23f7ab540ec49ab1c7d7f8bfefcd84
tree5dc25ca78477bb73ff58c6a07b13ad1a9e016622
parenta02bdd423d844f5beb3196922f07c85c2f7691b8
bnx2x: limit number of interrupt vectors for 57711

Original straightforward division may lead to zeroing number of SB and
null-pointer dereference when device is short of MSIX vectors or lacks
MSIX capabilities.

Reported-by: Vladislav Zolotarov <vladz@cloudius-systems.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c