[dpdk-stable] [PATCH] net/bnxt: fix initialization of filter struct

Lance Richardson lance.richardson at broadcom.com
Thu Apr 29 15:43:05 CEST 2021


On Wed, Apr 28, 2021 at 6:04 PM Lance Richardson
<lance.richardson at broadcom.com> wrote:
>
> Initialize filter structure to all zeroes on allocation.
>
> Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops")
> Cc: stable at dpdk.org
> Signed-off-by: Lance Richardson <lance.richardson at broadcom.com>
> Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde at broadcom.com>
> ---
>  drivers/net/bnxt/bnxt_filter.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c
> index 1d08e03b2f..6aadfa9526 100644
> --- a/drivers/net/bnxt/bnxt_filter.c
> +++ b/drivers/net/bnxt/bnxt_filter.c
> @@ -188,6 +188,7 @@ struct bnxt_filter_info *bnxt_get_unused_filter(struct bnxt *bp)
>                 return NULL;
>         }
>         STAILQ_REMOVE_HEAD(&bp->free_filter_list, next);
> +       memset(filter, 0, sizeof(*filter));
>
>         return filter;
>  }
> --
> 2.25.1
>
Self-NAK, will send a v2 shortly.


More information about the stable mailing list