[dpdk-dev] [PATCH 3/4] net/mlx5: solve var may be used uninitialized
Shahaf Shuler
shahafs at mellanox.com
Sun May 13 06:45:11 CEST 2018
Hi Andy
The patch logic is OK but:
1. since it is a fix patch the title should start with "fix ..."
2. add Fixes tag of the relevant commit and Cc stable if needed
3. add signed-of-by tag
4. explicitly include the PMD maintainers (Cc'ed now).
Friday, May 11, 2018 4:51 AM, Andy Green
> Subject: [dpdk-dev] [PATCH 3/4] net/mlx5: solve var may be used
> uninitialized
>
>
> ---
> drivers/net/mlx5/mlx5.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index
> 8f983061a..4d379fb13 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -624,7 +624,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv
> __rte_unused,
> int err = 0;
> struct ibv_context *attr_ctx = NULL;
> struct ibv_device_attr_ex device_attr;
> - unsigned int vf;
> + unsigned int vf = 0;
> unsigned int mps;
> unsigned int cqe_comp;
> unsigned int tunnel_en = 0;
More information about the dev
mailing list