We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cee96e commit 2f623aaCopy full SHA for 2f623aa
drivers/net/wan/farsync.c
@@ -2545,6 +2545,7 @@ fst_remove_one(struct pci_dev *pdev)
2545
struct net_device *dev = port_to_dev(&card->ports[i]);
2546
2547
unregister_hdlc_device(dev);
2548
+ free_netdev(dev);
2549
}
2550
2551
fst_disable_intr(card);
@@ -2564,6 +2565,7 @@ fst_remove_one(struct pci_dev *pdev)
2564
2565
card->tx_dma_handle_card);
2566
2567
fst_card_array[card->card_no] = NULL;
2568
+ kfree(card);
2569
2570
2571
static struct pci_driver fst_driver = {
0 commit comments