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

From: Bhargava Marreddy

Date: Mon Oct 05 2026 - 08:18:44 EST


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