diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2004-10-08 14:31:25 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2004-10-08 14:31:25 +0000 |
commit | 3981f17227aa72b263d27e79aede307b1e2980a8 (patch) | |
tree | cc20e9d0b94c508f8c93f88f7fbfbafa967f5300 | |
parent | 6619c5d941b86452405222a5b44a546dd0aa45c7 (diff) |
Fix refcount bug in stealth mode
-rw-r--r-- | linux-core/drm_drv.c | 1 | ||||
-rw-r--r-- | linux/drm_drv.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index 81ec1c76..8ca3524c 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -369,6 +369,7 @@ int drm_init(struct pci_driver *driver, pid->subvendor, pid->subdevice, pdev))) { /* stealth mode requires a manual probe */ + pci_dev_get(pdev); drm_probe(pdev, &pciidlist[i], driver_fn); } } diff --git a/linux/drm_drv.h b/linux/drm_drv.h index 00761eb3..6d698393 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -565,6 +565,7 @@ static int __init drm_init( void ) /* pass back in pdev to account for multiple identical cards */ while ((pdev = pci_get_subsys(pid->vendor, pid->device, pid->subvendor, pid->subdevice, pdev))) { /* stealth mode requires a manual probe */ + pci_dev_get(pdev); DRM(probe)(pdev, &DRM(pciidlist[i])); } } |