summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2020-08-19 04:33:09 +0200
committerDavid S. Miller <davem@davemloft.net>2020-08-20 01:37:18 +0200
commitcf96d977381d4a23957bade2ddf1c420b74a26b6 (patch)
tree9399780e1c8a87cb1ca77bcd6a1d1d171e717650 /net/wireless/nl80211.c
parentnet: atlantic: Use readx_poll_timeout() for large timeout (diff)
downloadlinux-cf96d977381d4a23957bade2ddf1c420b74a26b6.tar.xz
linux-cf96d977381d4a23957bade2ddf1c420b74a26b6.zip
net: gemini: Fix missing free_netdev() in error path of gemini_ethernet_port_probe()
Replace alloc_etherdev_mq with devm_alloc_etherdev_mqs. In this way, when probe fails, netdev can be freed automatically. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/nl80211.c')
0 files changed, 0 insertions, 0 deletions