summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-rlock-hardirq.h
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-12-07 16:34:13 +0800
committerDavid S. Miller <davem@davemloft.net>2022-12-09 10:51:38 +0000
commita137f3f27f9290933fe7e40e6dc8a445781c31a2 (patch)
treeeedb74be0abceaf341d3d686dbdf12dd1548689f /lib/locking-selftest-rlock-hardirq.h
parentf150b63f3fa5fdd81e0dd6151e8850268e29438c (diff)
net: stmmac: fix possible memory leak in stmmac_dvr_probe()
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>
Diffstat (limited to 'lib/locking-selftest-rlock-hardirq.h')
0 files changed, 0 insertions, 0 deletions