Skip to content

Commit 5f0e6ce

Browse files
committed
video: fbdev: intelfb: return -ENOMEM on framebuffer_alloc() failure
Fix error code from -ENODEV to -ENOMEM. Cc: Maik Broemme <mbroemme@libmpq.org> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
1 parent 602ecfb commit 5f0e6ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/video/fbdev/intelfb/intelfbdrv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static int intelfb_pci_register(struct pci_dev *pdev,
493493
info = framebuffer_alloc(sizeof(struct intelfb_info), &pdev->dev);
494494
if (!info) {
495495
ERR_MSG("Could not allocate memory for intelfb_info.\n");
496-
return -ENODEV;
496+
return -ENOMEM;
497497
}
498498
if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
499499
ERR_MSG("Could not allocate cmap for intelfb_info.\n");

0 commit comments

Comments
 (0)