atm: eni: fix the missed pci_disable_device() for eni_init_one()
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Fri, 4 Sep 2020 02:51:03 +0000 (10:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:26 +0000 (17:36 +0200)
commit27f214ea565b6b76af499ad4b0c038e1cb324b70
tree2337f9e55ca834ba0ca713e703eddb8b3a86b083
parentc50fd3ecb3f77f5040b206661287a44dae41a8a6
atm: eni: fix the missed pci_disable_device() for eni_init_one()

[ Upstream commit c2b947879ca320ac5505c6c29a731ff17da5e805 ]

eni_init_one() misses to call pci_disable_device() in an error path.
Jump to err_disable to fix it.

Fixes: ede58ef28e10 ("atm: remove deprecated use of pci api")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/atm/eni.c