Re: [PATCH net] net: aquantia: Fix error handling in aq_pci_probe()

2018-02-22 Thread David Miller
From: Dan Carpenter Date: Thu, 22 Feb 2018 12:11:55 +0300 > We should check "self->aq_hw" for allocation failure, and also we should > free it on the error paths. > > Fixes: 23ee07ad3c2f ("net: aquantia: Cleanup pci functions module") > Signed-off-by: Dan Carpenter

[PATCH net] net: aquantia: Fix error handling in aq_pci_probe()

2018-02-22 Thread Dan Carpenter
We should check "self->aq_hw" for allocation failure, and also we should free it on the error paths. Fixes: 23ee07ad3c2f ("net: aquantia: Cleanup pci functions module") Signed-off-by: Dan Carpenter diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c