OSDN Git Service

net/mlx5: Fix memory leak in bad flow of mlx5_alloc_irq_vectors
authorAlaa Hleihel <alaa@mellanox.com>
Thu, 14 Dec 2017 17:23:50 +0000 (19:23 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 12 Jan 2018 00:01:46 +0000 (02:01 +0200)
commitb6908c296021a99ba2a83a4b4703eb9e6365e5dc
tree37546ae513c88a7d79159b8a6ac8212c3935b6a4
parent05e0cc84e00c54fb152d1f4b86bc211823a83d0c
net/mlx5: Fix memory leak in bad flow of mlx5_alloc_irq_vectors

Fix a memory leak where in case that pci_alloc_irq_vectors failed,
priv->irq_info was not released.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c