]> 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)
commitf0ed15266e2e0e80074525c5537fa257b9618867
tree37546ae513c88a7d79159b8a6ac8212c3935b6a4
parent30e26272050ab69043b5ded126edbb0ce1a372cb
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: ffaf2c1a3989 ("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