Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: gemini: Fix missing free_netdev() in error path of gemini_ethern…
…et_port_probe() Replace alloc_etherdev_mq with devm_alloc_etherdev_mqs. In this way, when probe fails, netdev can be freed automatically. Fixes: 4d5ae32 ("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>
- Loading branch information