]> git.baikalelectronics.ru Git - kernel.git/commit
misc: microchip: pci1xxxx: fix error handling in gp_aux_bus_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 7 Sep 2022 14:58:04 +0000 (14:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 08:03:13 +0000 (10:03 +0200)
commitfbb15c97eb0fb4e7c3a9ce353ea909df96024f4d
treecdbb619bad276bf95b45d945667c72698b7c0c69
parent2746f54ed25fb2f67bb4690b6425d596ca492a82
misc: microchip: pci1xxxx: fix error handling in gp_aux_bus_probe()

In some error handling path, resoures alloced may not released.
This patch fix them.

Fixes: 7388563b8445 ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20220907145808.1789249-1-weiyongjun@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c