]> git.baikalelectronics.ru Git - kernel.git/commit
atm: idt77252: call pci_disable_device() on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Dec 2020 11:01:44 +0000 (14:01 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Dec 2020 01:34:09 +0000 (17:34 -0800)
commit7161e42f3a0882ff554338b3046f07feb42d1758
tree9e12d63e83e62e8b5bc366a89f20c63bc2548bd3
parent117bfe8337b3f5162006db4dbd19a80fc1adb3d0
atm: idt77252: call pci_disable_device() on error path

This error path needs to disable the pci device before returning.

Fixes: e9d6580ca6aa ("atm: remove deprecated use of pci api")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X93dmC4NX0vbTpGp@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/atm/idt77252.c