diff options
author | Breno Leitao <leitao@debian.org> | 2024-04-22 15:39:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-24 14:00:17 +0300 |
commit | 4a8b77eff7e5654c36cf6f0997772efedc01f6ba (patch) | |
tree | 207311e22e6ede77c4903854a54065c404ead034 /drivers/net | |
parent | 2eb5e25d84956c264dc03fc45deb3701f3a0ccea (diff) | |
download | linux-4a8b77eff7e5654c36cf6f0997772efedc01f6ba.tar.xz |
wifi: qtnfmac: Use netdev dummy allocator helper
There is a new dummy netdev allocator, use it instead of
alloc_netdev()/init_dummy_netdev combination.
Using alloc_netdev() with init_dummy_netdev might cause some memory
corruption at the driver removal side.
Fixes: 61cdb09ff760 ("wifi: qtnfmac: allocate dummy net_device dynamically")
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index f8f55db2f454..f66eb43094d4 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c @@ -372,8 +372,7 @@ static int qtnf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto error; } - bus->mux_dev = alloc_netdev(0, "dummy", NET_NAME_UNKNOWN, - init_dummy_netdev); + bus->mux_dev = alloc_netdev_dummy(0); if (!bus->mux_dev) { ret = -ENOMEM; goto error; |