diff options
-rw-r--r-- | drivers/net/bnx2.c | 4 | ||||
-rw-r--r-- | drivers/net/bnx2.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 0e2218dadb3d..6ba2fecd89fc 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -5827,6 +5827,8 @@ bnx2_enable_msix(struct bnx2 *bp, int msix_vecs) | |||
5827 | { | 5827 | { |
5828 | int i, rc; | 5828 | int i, rc; |
5829 | struct msix_entry msix_ent[BNX2_MAX_MSIX_VEC]; | 5829 | struct msix_entry msix_ent[BNX2_MAX_MSIX_VEC]; |
5830 | struct net_device *dev = bp->dev; | ||
5831 | const int len = sizeof(bp->irq_tbl[0].name); | ||
5830 | 5832 | ||
5831 | bnx2_setup_msix_tbl(bp); | 5833 | bnx2_setup_msix_tbl(bp); |
5832 | REG_WR(bp, BNX2_PCI_MSIX_CONTROL, BNX2_MAX_MSIX_HW_VEC - 1); | 5834 | REG_WR(bp, BNX2_PCI_MSIX_CONTROL, BNX2_MAX_MSIX_HW_VEC - 1); |
@@ -5837,7 +5839,7 @@ bnx2_enable_msix(struct bnx2 *bp, int msix_vecs) | |||
5837 | msix_ent[i].entry = i; | 5839 | msix_ent[i].entry = i; |
5838 | msix_ent[i].vector = 0; | 5840 | msix_ent[i].vector = 0; |
5839 | 5841 | ||
5840 | strcpy(bp->irq_tbl[i].name, bp->dev->name); | 5842 | snprintf(bp->irq_tbl[i].name, len, "%s-%d", dev->name, i); |
5841 | bp->irq_tbl[i].handler = bnx2_msi_1shot; | 5843 | bp->irq_tbl[i].handler = bnx2_msi_1shot; |
5842 | } | 5844 | } |
5843 | 5845 | ||
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index 2f43c45b7ad6..88f962bff2d3 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -6627,7 +6627,7 @@ struct bnx2_irq { | |||
6627 | irq_handler_t handler; | 6627 | irq_handler_t handler; |
6628 | unsigned int vector; | 6628 | unsigned int vector; |
6629 | u8 requested; | 6629 | u8 requested; |
6630 | char name[16]; | 6630 | char name[IFNAMSIZ + 2]; |
6631 | }; | 6631 | }; |
6632 | 6632 | ||
6633 | struct bnx2_tx_ring_info { | 6633 | struct bnx2_tx_ring_info { |