aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorHW He <[email protected]>2022-11-03 18:40:00 +0800
committerDavid S. Miller <[email protected]>2022-11-07 09:36:56 +0000
commitf25caaca424703d5a0607310f0452f978f1f78d9 (patch)
treef3ba3acdaf6fbe0f4e83f036f5e2ec882644f618 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent85cbaf032d3cd9f595152625eda5d4ecb1d6d78d (diff)
net: wwan: iosm: fix memory leak in ipc_wwan_dellink
IOSM driver registers network device without setting the needs_free_netdev flag, and does NOT call free_netdev() when unregisters network device, which causes a memory leak. This patch sets needs_free_netdev to true when registers network device, which makes netdev subsystem call free_netdev() automatically after unregister_netdevice(). Fixes: 2a54f2c77934 ("net: iosm: net driver") Signed-off-by: HW He <[email protected]> Reviewed-by: Loic Poulain <[email protected]> Signed-off-by: Zhaoping Shu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions