]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: sm750fb: disable PCI device if lynxfb_pci_probe fails
authorMike Rapoport <mike.rapoport@gmail.com>
Sun, 17 Jan 2016 17:59:49 +0000 (19:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:50:53 +0000 (18:50 -0800)
commit0fbc7c505680ca6efe2486afb34866602781c980
treeb96a7589d219e157407def207b97b1d89448c889
parentd9d3e025c0f68a1ec99ee13209d31d2a766ac56f
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>
drivers/staging/sm750fb/sm750.c