Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235989
b: refs/heads/master
c: 6af8172
h: refs/heads/master
i:
  235987: c2763a3
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 93352b9 commit 79da174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: bb29223453061b9b738e3659f7810c1f61165df2
refs/heads/master: 6af8172043ddcebfcfc06a0921a10a858de45106
9 changes: 2 additions & 7 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,

XGIhw_ext.pCR = vmalloc(sizeof(struct XGI_DSReg) * CR_BUFFER_SIZE);
if (XGIhw_ext.pCR == NULL) {
vfree(XGIhw_ext.pSR);
printk(KERN_ERR "XGIfb: Fatal error: Allocating CRReg space failed.\n");
ret = -ENODEV;
goto error;
Expand Down Expand Up @@ -3105,8 +3104,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
}
#endif
if (XGIfb_get_dram_size()) {
vfree(XGIhw_ext.pSR);
vfree(XGIhw_ext.pCR);
printk(KERN_INFO "XGIfb: Fatal error: Unable to determine RAM size.\n");
ret = -ENODEV;
goto error;
Expand All @@ -3125,17 +3122,13 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
printk("unable request memory size %x", xgi_video_info.video_size);
printk(KERN_ERR "XGIfb: Fatal error: Unable to reserve frame buffer memory\n");
printk(KERN_ERR "XGIfb: Is there another framebuffer driver active?\n");
vfree(XGIhw_ext.pSR);
vfree(XGIhw_ext.pCR);
ret = -ENODEV;
goto error;
}

if (!request_mem_region(xgi_video_info.mmio_base, XGIfb_mmio_size, "XGIfb MMIO")) {
printk(KERN_ERR "XGIfb: Fatal error: Unable to reserve MMIO region\n");
release_mem_region(xgi_video_info.video_base, xgi_video_info.video_size);
vfree(XGIhw_ext.pSR);
vfree(XGIhw_ext.pCR);
ret = -ENODEV;
goto error;
}
Expand Down Expand Up @@ -3441,6 +3434,8 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
return 0;

error:
vfree(XGIhw_ext.pSR);
vfree(XGIhw_ext.pCR);
framebuffer_release(fb_info);
return ret;
}
Expand Down

0 comments on commit 79da174

Please sign in to comment.