]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit761b1837b4dfa9c80feb88033903476086662a16
tree37546ae513c88a7d79159b8a6ac8212c3935b6a4
parentc872fad7705fc024729d4645856f6ad4b0249c65
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: 7c120481afcc ("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