]> git.baikalelectronics.ru Git - kernel.git/commit
mcb: Fix error handling in mcb_pci_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 24 Aug 2015 08:18:38 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2015 04:10:01 +0000 (05:10 +0100)
commit6e4ded8a90340ce45491f12f6b5245b832ffeb6d
treef4f36526582dbd6462d01ac13996fc1fe3131343
parent27815e8b41c48b0e0bc079835974d0aa2ce29803
mcb: Fix error handling in mcb_pci_probe()

If a MCB PCI Carrier device is IO mapped insted of memory-mapped,
the memory of the PCI device is still not unmapped.

Also the patch adds deallocation of the bus
if chameleon_parse_cells() fails.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mcb/mcb-pci.c