Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43774
b: refs/heads/master
c: ef26dd7
h: refs/heads/master
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 8, 2006
1 parent 0a8ad94 commit bdbcb4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 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: dd607d23ff4cc004da2986d0b264a972c6a2da3e
refs/heads/master: ef26dd7ffa305382aabcd95fd574d01808a65c41
17 changes: 16 additions & 1 deletion trunk/drivers/video/virgefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ int __init virgefb_init(void)
#warning release resources
printk(KERN_ERR "virgefb.c: register_framebuffer failed\n");
DPRINTK("EXIT\n");
return -EINVAL;
goto out_unmap;
}

printk(KERN_INFO "fb%d: %s frame buffer device, using %ldK of video memory\n",
Expand All @@ -1809,6 +1809,21 @@ int __init virgefb_init(void)

DPRINTK("EXIT\n");
return 0;

out_unmap:
if (board_addr >= 0x01000000) {
if (v_ram)
iounmap((void*)v_ram);
if (vgaio_regs)
iounmap(vgaio_regs);
if (mmio_regs)
iounmap(mmio_regs);
if (vcode_switch_base)
iounmap((void*)vcode_switch_base);
v_ram = vcode_switch_base = 0;
vgaio_regs = mmio_regs = NULL;
}
return -EINVAL;
}


Expand Down

0 comments on commit bdbcb4c

Please sign in to comment.