Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83567
b: refs/heads/master
c: 625fcaf
h: refs/heads/master
i:
  83565: 611486e
  83563: 0818df9
  83559: 5c219d2
  83551: 7f955f3
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Feb 6, 2008
1 parent bc74dd4 commit 7ec3302
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5eb03a4ab239d8769fa13df6c894d618ecae1b50
refs/heads/master: 625fcaf97340b9409e41fcefbbd18e02e3a9e9dd
5 changes: 5 additions & 0 deletions trunk/drivers/video/igafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ int __init igafb_init(void)
info = kzalloc(size, GFP_ATOMIC);
if (!info) {
printk("igafb_init: can't alloc fb_info\n");
pci_dev_put(pdev);
return -ENOMEM;
}

Expand All @@ -409,12 +410,14 @@ int __init igafb_init(void)
if ((addr = pdev->resource[0].start) == 0) {
printk("igafb_init: no memory start\n");
kfree(info);
pci_dev_put(pdev);
return -ENXIO;
}

if ((info->screen_base = ioremap(addr, 1024*1024*2)) == 0) {
printk("igafb_init: can't remap %lx[2M]\n", addr);
kfree(info);
pci_dev_put(pdev);
return -ENXIO;
}

Expand Down Expand Up @@ -449,6 +452,7 @@ int __init igafb_init(void)
printk("igafb_init: can't remap %lx[4K]\n", igafb_fix.mmio_start);
iounmap((void *)info->screen_base);
kfree(info);
pci_dev_put(pdev);
return -ENXIO;
}

Expand All @@ -466,6 +470,7 @@ int __init igafb_init(void)
iounmap((void *)par->io_base);
iounmap(info->screen_base);
kfree(info);
pci_dev_put(pdev);
return -ENOMEM;
}

Expand Down

0 comments on commit 7ec3302

Please sign in to comment.