Hi!


Jon Smirl wrote:
On Thu, 07 Oct 2004 08:56:30 +0200, Thomas Hellstrom
<[EMAIL PROTECTED]> wrote:
  
Hi!

Ok, now the rmmod oops is gone, and I'm back at the previous state...
Oops the fourth time the via module is loaded. No X server activity:
    

Give this patch a try and let me know if it works. The previous bug
was hiding this one.

The refcount on the pci_dev is going negative and it is getting
deleted at the wrong place.

  
  
Yes, this one fixes it.

Thanks.

Thomas






===== linux/drm_drv.h 1.21 vs edited ===== --- 1.21/linux/drm_drv.h 2004-09-21 20:29:48 -04:00 +++ edited/linux/drm_drv.h 2004-10-07 17:36:44 -04:00 @@ -565,6 +565,7 @@ /* 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])); } }

Reply via email to