[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a784ae7f-cd9c-4141-f862-0c01f61d0200@aquantia.com>
Date: Tue, 8 May 2018 10:19:14 +0300
From: Igor Russkikh <igor.russkikh@...antia.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
davem@...emloft.net, pavel.belous@...antia.com,
weiyongjun1@...wei.com, dan.carpenter@...cle.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] net: aquantia: Fix an error handling path in
'aq_pci_probe()'
Hi Christophe,
On 08.05.2018 09:39, Christophe JAILLET wrote:
> The position of 2 labels should be swapped in order to release resources
> in the correct order and avoid leaks.
>
> kfree(self->aq_hw);
> err_ioremap:
> free_netdev(ndev);
> -err_pci_func:
> - pci_release_regions(pdev);
> err_ndev:
> + pci_release_regions(pdev);
> +err_pci_func:
> pci_disable_device(pdev);
> return err;
> }
>
This was just submitted yesterday and is already accepted in netdev by David:
http://patchwork.ozlabs.org/patch/909746/
Thanks!
BR, Igor
Powered by blists - more mailing lists