Messages in this thread | | | Date | Tue, 1 Sep 2020 12:13:45 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH] EDAC: i5100_edac: Fix error handling code in i5100_init_one |
| |
On Wed, Aug 26, 2020 at 08:14:37PM +0800, Dinghao Liu wrote: > When pci_get_device_func() fails, we don't need to execute > pci_dev_put(). But mci should be freed to prevent memleak. > When pci_enable_device() fails, we don't need to disable > einj either. > > Fixes: 52608ba205461 ("i5100_edac: probe for device 19 function 0") > Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> > --- > drivers/edac/i5100_edac.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-)
Applied, thanks.
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| |