]> git.baikalelectronics.ru Git - kernel.git/commit
m68k/PCI: Fix a memory leak in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 18 Apr 2020 07:07:51 +0000 (09:07 +0200)
committerGreg Ungerer <gerg@kernel.org>
Mon, 25 May 2020 00:32:20 +0000 (10:32 +1000)
commit1d790760f0f85db1a9102642297afdf3c255917c
treecf1cc87b4050f88e7d6f39f1c25e2965f35262fb
parent31b75868ec8696d26171fcdccb1fb9c4854692d0
m68k/PCI: Fix a memory leak in an error handling path

If 'ioremap' fails, we must free 'bridge', as done in other error handling
path bellow.

Fixes: 8fef6201f2d2 ("m68k/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/coldfire/pci.c