Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139271
b: refs/heads/master
c: 0fd8531
h: refs/heads/master
i:
  139269: a638365
  139267: dd46882
  139263: 78d0ae8
v: v3
  • Loading branch information
Andres Salomon authored and Linus Torvalds committed Apr 1, 2009
1 parent d509775 commit 51b709a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 5e266e2e0e19532c1b8e2e2bff1eb6ccf42e478a
refs/heads/master: 0fd853118dd821de59106c5b9a0a2a6f488bc4b5
9 changes: 6 additions & 3 deletions trunk/drivers/video/skeletonfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,8 +795,9 @@ static int __devinit xxxfb_probe(struct pci_dev *dev,
if (!retval || retval == 4)
return -EINVAL;

/* This has to been done !!! */
fb_alloc_cmap(&info->cmap, cmap_len, 0);
/* This has to be done! */
if (fb_alloc_cmap(&info->cmap, cmap_len, 0))
return -ENOMEM;

/*
* The following is done in the case of having hardware with a static
Expand All @@ -820,8 +821,10 @@ static int __devinit xxxfb_probe(struct pci_dev *dev,
*/
/* xxxfb_set_par(info); */

if (register_framebuffer(info) < 0)
if (register_framebuffer(info) < 0) {
fb_dealloc_cmap(&info->cmap);
return -EINVAL;
}
printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node,
info->fix.id);
pci_set_drvdata(dev, info); /* or platform_set_drvdata(pdev, info) */
Expand Down

0 comments on commit 51b709a

Please sign in to comment.