summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2022-12-05 04:21:32 +0300
committerJakub Kicinski <kuba@kernel.org>2022-12-07 07:36:38 +0300
commit78a9ea43fc1a7c06a420b132d2d47cbf4344a5df (patch)
tree6cb63689fa164680dd7e4227acaa9750aadae253 /drivers/net/ethernet/intel/i40e/i40e_ethtool.c
parente40febfb9c99bc30a0dcb60e39b00beb656fdb0f (diff)
downloadlinux-78a9ea43fc1a7c06a420b132d2d47cbf4344a5df.tar.xz
net: dsa: sja1105: fix memory leak in sja1105_setup_devlink_regions()
When dsa_devlink_region_create failed in sja1105_setup_devlink_regions(), priv->regions is not released. Fixes: bf425b82059e ("net: dsa: sja1105: expose static config as devlink region") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20221205012132.2110979-1-shaozhengchao@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_ethtool.c')
0 files changed, 0 insertions, 0 deletions