summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy-c45.c
diff options
context:
space:
mode:
authorWenwen Wang2019-08-12 21:11:35 +0200
committerJakub Kicinski2019-08-14 04:42:43 +0200
commit48ec7014c56e5eb2fbf6f479896143622d834f3b (patch)
treeb70fc7b157fcdd452d3f01a58193c6d7d541c818 /drivers/net/phy/phy-c45.c
parentibmveth: Convert multicast list size for little-endian system (diff)
downloadkernel-qcow2-linux-48ec7014c56e5eb2fbf6f479896143622d834f3b.tar.gz
kernel-qcow2-linux-48ec7014c56e5eb2fbf6f479896143622d834f3b.tar.xz
kernel-qcow2-linux-48ec7014c56e5eb2fbf6f479896143622d834f3b.zip
net/mlx4_en: fix a memory leak bug
In mlx4_en_config_rss_steer(), 'rss_map->indir_qp' is allocated through kzalloc(). After that, mlx4_qp_alloc() is invoked to configure RSS indirection. However, if mlx4_qp_alloc() fails, the allocated 'rss_map->indir_qp' is not deallocated, leading to a memory leak bug. To fix the above issue, add the 'qp_alloc_err' label to free 'rss_map->indir_qp'. Fixes: 4931c6ef04b4 ("net/mlx4_en: Optimized single ring steering") Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'drivers/net/phy/phy-c45.c')
0 files changed, 0 insertions, 0 deletions