Thread (9 messages) 9 messages, 4 authors, 1d ago

[PATCH net 0/4] bnge: Fix error-path and IRQ setup bugs in probe/open

flat view
WARM1d

From: Bhargava Marreddy <hidden>
Date: 2026-10-05 12:18:34
Also in: lkml

Four independent fixes for existing bugs in the bnge driver's probe/open
path:

 [1/4] Unwind bnge_alloc_core() incrementally to avoid a NULL deref when an
       allocation fails.
 [2/4] Require aux_msix + min vectors so nq_nr_rings cannot end up 0.
 [3/4] Treat an irq_set_affinity_hint() failure as a warning, not an open
       failure.
 [4/4] Clear bd->netdev when bnge_netdev_alloc() fails so it does not
       point at a freed net_device.

Bhargava Marreddy (4):
  bnge: fix NULL deref in bnge_alloc_core() on failure
  bnge: require NQ vectors beyond aux reservation
  bnge: do not fail open if IRQ affinity hint fails
  bnge: clear bd->netdev on allocation failure

 .../net/ethernet/broadcom/bnge/bnge_netdev.c  | 51 +++++++++++++------
 .../net/ethernet/broadcom/bnge/bnge_resc.c    |  2 +-
 2 files changed, 37 insertions(+), 16 deletions(-)

-- 
2.47.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help