Skip to content

Commit

Permalink
fbdev: cyber2000fb: fix missing pci_disable_device()
Browse files Browse the repository at this point in the history
Add missing pci_disable_device() in error path of probe() and remove() path.

Fixes: 1da177e ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Yang Yingliang authored and Helge Deller committed Oct 27, 2022
1 parent 835bed1 commit 3c6bf6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/fbdev/cyber2000fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,7 @@ static int cyberpro_pci_probe(struct pci_dev *dev,
failed_regions:
cyberpro_free_fb_info(cfb);
failed_release:
pci_disable_device(dev);
return err;
}

Expand All @@ -1812,6 +1813,7 @@ static void cyberpro_pci_remove(struct pci_dev *dev)
int_cfb_info = NULL;

pci_release_regions(dev);
pci_disable_device(dev);
}
}

Expand Down

0 comments on commit 3c6bf6b

Please sign in to comment.