Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94154
b: refs/heads/master
c: 21b4d1d
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Apr 28, 2008
1 parent 9cc06f4 commit 3ddbdb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 57a7a6db0eed2862072497116232f57a6843cadd
refs/heads/master: 21b4d1db84a70175251d86078123cc27e46ff69d
7 changes: 5 additions & 2 deletions trunk/drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2621,10 +2621,13 @@ static int __devinit aty_init(struct fb_info *info)
#endif /* CONFIG_FB_ATY_CT */
info->var = var;

fb_alloc_cmap(&info->cmap, 256, 0);
if (fb_alloc_cmap(&info->cmap, 256, 0) < 0)
goto aty_init_exit;

if (register_framebuffer(info) < 0)
if (register_framebuffer(info) < 0) {
fb_dealloc_cmap(&info->cmap);
goto aty_init_exit;
}

fb_list = info;

Expand Down

0 comments on commit 3ddbdb6

Please sign in to comment.