Skip to content

Commit 4e45105

Browse files
Jiawen Wusmb49
Jiawen Wu
authored andcommitted
net: txgbe: initialize num_q_vectors for MSI/INTx interrupts
BugLink: https://bugs.launchpad.net/bugs/2077600 [ Upstream commit 7c36711a2cd8059c2d24f5e5c1d76e8ea2d5613c ] When using MSI/INTx interrupts, wx->num_q_vectors is uninitialized. Thus there will be kernel panic in wx_alloc_q_vectors() to allocate queue vectors. Fixes: 3f70318 ("net: libwx: Add irq flow functions") Signed-off-by: Jiawen Wu <[email protected]> Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Portia Stephens <[email protected]> Signed-off-by: Roxana Nicolescu <[email protected]>
1 parent 04e1fa4 commit 4e45105

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/wangxun/libwx

1 file changed

+1
-0
lines changed

drivers/net/ethernet/wangxun/libwx/wx_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,7 @@ static int wx_set_interrupt_capability(struct wx *wx)
16861686
}
16871687

16881688
pdev->irq = pci_irq_vector(pdev, 0);
1689+
wx->num_q_vectors = 1;
16891690

16901691
return 0;
16911692
}

0 commit comments

Comments
 (0)