linux/drivers/net/ethernet/broadcom/bnge
Alok Tiwari 2cbd8a4e5e bnge: use int for bnge_fix_rings_count() return value
bnge_fix_rings_count() returns 0 on success or a negative errno on failure
However, bnge_adjust_rings() stores its return value in a u16 variable,
causing negative error codes such as -ENOMEM to be converted to a large
positive value.

Use an int for the return code variable so that error values are
preserved and propagated correctly.

Fixes: 627c67f038 ("bng_en: Add resource management support")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Bhargava Marreddy <bhargava.marreddy@broadcom.com>
Link: https://patch.msgid.link/20260801100923.1498570-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-04 18:16:48 -07:00
..
bnge_auxr.c bnge: Fix NULL pointer dereference in aux device release 2026-08-03 18:12:50 -07:00
bnge_auxr.h bng_en: Add RoCE aux device support 2025-11-20 10:35:56 -05:00
bnge_core.c bnge: fix initial HWRM sequence 2026-04-22 20:30:46 -07:00
bnge_db.h bng_en: Register rings with the firmware 2025-09-22 17:51:28 -07:00
bnge_devlink.c bng_en: fix misleading error message for generic firmware version 2026-02-03 19:11:29 -08:00
bnge_devlink.h bng_en: Add initial interaction with firmware 2025-07-07 18:54:00 -07:00
bnge_ethtool.c bng_en: add support for ethtool -S stats display 2026-04-12 11:09:37 -07:00
bnge_ethtool.h bng_en: Add a network device 2025-07-07 18:54:01 -07:00
bnge_hw_def.h bng_en: Add TPA related functions 2026-01-29 19:49:56 -08:00
bnge_hwrm_lib.c bnge/bng_re: fix ring ID widths 2026-07-23 10:24:12 -07:00
bnge_hwrm_lib.h bnge/bng_re: fix ring ID widths 2026-07-23 10:24:12 -07:00
bnge_hwrm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bnge_hwrm.h bnge/bng_re: Add a new HSI 2026-02-11 13:44:47 +01:00
bnge_link.c bng_en: add support for link async events 2026-04-12 11:09:37 -07:00
bnge_link.h bng_en: add support for link async events 2026-04-12 11:09:37 -07:00
bnge_netdev.c bnge/bng_re: fix ring ID widths 2026-07-23 10:24:12 -07:00
bnge_netdev.h bnge/bng_re: fix ring ID widths 2026-07-23 10:24:12 -07:00
bnge_resc.c bnge: use int for bnge_fix_rings_count() return value 2026-08-04 18:16:48 -07:00
bnge_resc.h bng_en: Add RoCE aux device support 2025-11-20 10:35:56 -05:00
bnge_rmem.c bnge: remove unsupported backing store type 2026-04-22 20:30:46 -07:00
bnge_rmem.h bnge/bng_re: fix ring ID widths 2026-07-23 10:24:12 -07:00
bnge_txrx.c bng_en: add support for link async events 2026-04-12 11:09:37 -07:00
bnge_txrx.h bnge/bng_re: Add a new HSI 2026-02-11 13:44:47 +01:00
bnge.h bnge/bng_re: fix ring ID widths 2026-07-23 10:24:12 -07:00
Makefile bng_en: query PHY capabilities and report link status 2026-04-12 11:09:36 -07:00