Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44739
b: refs/heads/master
c: 2c3f0ed
h: refs/heads/master
i:
  44737: 74aa488
  44735: ae25ddf
v: v3
  • Loading branch information
Jeff Garzik authored and Dave Airlie committed Dec 11, 2006
1 parent 24de822 commit cf1bc24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94f060bd0f78814f4daf8c7942bd710af52c7d6f
refs/heads/master: 2c3f0eddfbd7f5c7a5450de287bad805722888c3
12 changes: 8 additions & 4 deletions trunk/drivers/char/drm/drm_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,26 @@ int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent,
if (!dev)
return -ENOMEM;

pci_enable_device(pdev);
ret = pci_enable_device(pdev);
if (ret)
goto err_g1;

if ((ret = drm_fill_in_dev(dev, pdev, ent, driver))) {
printk(KERN_ERR "DRM: Fill_in_dev failed.\n");
goto err_g1;
goto err_g2;
}
if ((ret = drm_get_head(dev, &dev->primary)))
goto err_g1;
goto err_g2;

DRM_INFO("Initialized %s %d.%d.%d %s on minor %d\n",
driver->name, driver->major, driver->minor, driver->patchlevel,
driver->date, dev->primary.minor);

return 0;

err_g1:
err_g2:
pci_disable_device(pdev);
err_g1:
drm_free(dev, sizeof(*dev), DRM_MEM_STUB);
return ret;
}
Expand Down

0 comments on commit cf1bc24

Please sign in to comment.