On Thu, Mar 12, 2026 at 6:36 AM Kevin Traynor <[email protected]> wrote:
> batch_info->enabled is read in tfc_mpc_batch_start() before it is
> initialized.
>
> Initialize batch_info to avoid this.
>
> Fixes: 67ad40007cd6 ("net/bnxt/tf_ulp: fix VFR cleanup and stats lockup")
> Cc: [email protected]
>
> Signed-off-by: Kevin Traynor <[email protected]>
> ---
>
Acked-by: Kishore Padmanabha <[email protected]>
> drivers/net/bnxt/tf_ulp/ulp_sc_mgr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/bnxt/tf_ulp/ulp_sc_mgr.c
> b/drivers/net/bnxt/tf_ulp/ulp_sc_mgr.c
> index b55366e003..23e1b59ca4 100644
> --- a/drivers/net/bnxt/tf_ulp/ulp_sc_mgr.c
> +++ b/drivers/net/bnxt/tf_ulp/ulp_sc_mgr.c
> @@ -193,5 +193,5 @@ static uint32_t ulp_stats_cache_main_loop(void *arg)
> struct ulp_sc_tfc_stats_cache_entry *sce;
> struct ulp_sc_tfc_stats_cache_entry *sce_end;
> - struct tfc_mpc_batch_info_t batch_info;
> + struct tfc_mpc_batch_info_t batch_info = {0};
> struct bnxt_ulp_sc_info *ulp_sc_info;
> struct bnxt_ulp_context *ctxt = NULL;
> --
> 2.53.0
>
>
smime.p7s
Description: S/MIME Cryptographic Signature

