Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43786
b: refs/heads/master
c: 8d4c767
h: refs/heads/master
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 8, 2006
1 parent f455b33 commit 7a5b7a2
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 1b3349fa448ce41eda5ae0e6d4dc52837d14ad11
refs/heads/master: 8d4c767ef56473b68a601274612d604c8c334dc9
4 changes: 4 additions & 0 deletions trunk/drivers/video/ffb.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@ static int ffb_init_one(struct of_device *op)

if (fb_alloc_cmap(&all->info.cmap, 256, 0)) {
printk(KERN_ERR "ffb: Could not allocate color map.\n");
of_iounmap(all->par.fbc, sizeof(struct ffb_fbc));
of_iounmap(all->par.dac, sizeof(struct ffb_dac));
kfree(all);
return -ENOMEM;
}
Expand All @@ -978,6 +980,8 @@ static int ffb_init_one(struct of_device *op)
if (err < 0) {
printk(KERN_ERR "ffb: Could not register framebuffer.\n");
fb_dealloc_cmap(&all->info.cmap);
of_iounmap(all->par.fbc, sizeof(struct ffb_fbc));
of_iounmap(all->par.dac, sizeof(struct ffb_dac));
kfree(all);
return err;
}
Expand Down

0 comments on commit 7a5b7a2

Please sign in to comment.