diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2022-11-11 10:20:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-14 12:21:02 +0100 |
commit | f7c125bd79f50ec6094761090be81d02726ec6f4 (patch) | |
tree | 4482b5032e662be73c61f6c43319e6ba834a989d /net/unix/scm.h | |
parent | Merge branch 'octeon_ep-fixes' (diff) | |
download | linux-f7c125bd79f50ec6094761090be81d02726ec6f4.tar.xz linux-f7c125bd79f50ec6094761090be81d02726ec6f4.zip |
net: mhi: Fix memory leak in mhi_net_dellink()
MHI 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 calls free_netdev() to fix it since netdev_priv
is used after unregister.
Fixes: 13adac032982 ("net: mhi_net: Register wwan_ops for link creation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/scm.h')
0 files changed, 0 insertions, 0 deletions