[PATCH] net/bnxt: check TSID retrieval failure
Kishore Padmanabha
kishore.padmanabha at broadcom.com
Mon Sep 21 20:49:35 CEST 2026
On Tue, Sep 15, 2026 at 4:51 AM Evgeny Sokolov <Evgeny.Sokolov at infotecs.ru>
wrote:
> From: Sokolov Evgeny <Evgeny.Sokolov at infotecs.ru>
>
> Check the return value of bnxt_ulp_cntxt_tsid_get() and log an
> error when TSID retrieval fails.
>
> Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org)
> with SVACE.
>
> Signed-off-by: Sokolov Evgeny <Evgeny.Sokolov at infotecs.ru>
> ---
> drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
> b/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
> index fa98b2bca9..d5ce4c3c18 100644
> --- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
> +++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c
> @@ -309,6 +309,8 @@ ulp_tfc_tbl_scope_deinit(struct bnxt *bp)
> return;
>
> rc = bnxt_ulp_cntxt_tsid_get(bp->ulp_ctx, &tsid);
> + if (unlikely(rc))
> + BNXT_DRV_DBG(ERR, "Failed to get the table scope\n");
>
> rc = bnxt_ulp_cntxt_fid_get(bp->ulp_ctx, &fid);
> if (rc)
> --
Acked-by: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
>
> 2.30.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20260921/8e397d7a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5493 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mails.dpdk.org/archives/stable/attachments/20260921/8e397d7a/attachment.bin>
More information about the stable
mailing list