Files
linux-stable-mirror/drivers/net/ethernet/broadcom/bnge
Alok TiwariandJakub Kicinski 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
..
2026-04-22 20:30:46 -07:00
2026-02-11 13:44:47 +01:00
2026-07-23 10:24:12 -07:00
2026-07-23 10:24:12 -07:00
2026-07-23 10:24:12 -07:00
2026-02-11 13:44:47 +01:00
2026-07-23 10:24:12 -07:00