Commit 96e5089
net: stmmac: fix possible memory leak in stmmac_dvr_probe()
[ Upstream commit a137f3f ]
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: bba2556 ("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>1 parent ecaf934 commit 96e5089
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7046 | 7046 | | |
7047 | 7047 | | |
7048 | 7048 | | |
7049 | | - | |
| 7049 | + | |
7050 | 7050 | | |
7051 | 7051 | | |
7052 | 7052 | | |
| |||
7273 | 7273 | | |
7274 | 7274 | | |
7275 | 7275 | | |
| 7276 | + | |
7276 | 7277 | | |
7277 | 7278 | | |
7278 | 7279 | | |
| |||
0 commit comments