]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
be2net: pass wrb_params in case of OS2BMC
authorAndrey Vatoropin <a.vatoropin@crpt.ru>
Wed, 19 Nov 2025 10:51:12 +0000 (10:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:43:22 +0000 (11:43 +0100)
commit1ecd86ec6efddb59a10c927e8e679f183bb9113e
tree3a26d0b84cbc4af5a3f3796f79fcda5190f710a6
parentf7fc52c1b008ffacd5f5a9bd72bb4e12af734146
be2net: pass wrb_params in case of OS2BMC

commit 7d277a7a58578dd62fd546ddaef459ec24ccae36 upstream.

be_insert_vlan_in_pkt() is called with the wrb_params argument being NULL
at be_send_pkt_to_bmc() call site.  This may lead to dereferencing a NULL
pointer when processing a workaround for specific packet, as commit
bc0c3405abbb ("be2net: fix a Tx stall bug caused by a specific ipv6
packet") states.

The correct way would be to pass the wrb_params from be_xmit().

Fixes: 760c295e0e8d ("be2net: Support for OS2BMC.")
Cc: stable@vger.kernel.org
Signed-off-by: Andrey Vatoropin <a.vatoropin@crpt.ru>
Link: https://patch.msgid.link/20251119105015.194501-1-a.vatoropin@crpt.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/emulex/benet/be_main.c