aboutsummaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorGaosheng Cui2022-12-07 16:34:13 +0800
committerGreg Kroah-Hartman2022-12-31 13:32:26 +0100
commit446757787baf99b7db15cb347783c45a37bfe21f (patch)
tree2eaacaceaf326b814eaaa5c64855b7bd83b89bf5 /include/net
parentbfbc4f7f82da544920635e87323542051d253c8f (diff)
net: stmmac: fix possible memory leak in stmmac_dvr_probe()
[ Upstream commit a137f3f27f9290933fe7e40e6dc8a445781c31a2 ] The bitmap_free() should be called to free priv->af_xdp_zc_qps when create_singlethread_workqueue() fails, otherwise there will be a memory leak, so we add the err path error_wq_init to fix it. Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy") Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions