mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
staging: sm750fb: disable PCI device if lynxfb_pci_probe fails
In case of error during lynxfb_pci_probe, the function returned without calling pci_disable_device. Fix it by adding pci_disable_device on the error cleanup path. Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d9d3e025c0
commit
0fbc7c5056
1 changed files with 1 additions and 0 deletions
|
@ -1132,6 +1132,7 @@ static int lynxfb_pci_probe(struct pci_dev *pdev,
|
|||
err_map:
|
||||
kfree(sm750_dev);
|
||||
err_share:
|
||||
pci_disable_device(pdev);
|
||||
err_enable:
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue