Skip to contentSkip to conversation

video: fbdev: intelfb: return -ENOMEM on framebuffer_alloc() failure

PATCH In review Bartlomiej Zolnierkiewicz 1 participant 2 messages Jun 14, 2019 – Jun 28, 2019 1 message not in the archive Framebuffer layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20190614144823eucas1p1f6d5ed1905350e9933f4d7fec0a3419f@eucas1p1.samsung.com

#1 lore raw

PATCH 2/3 video: fbdev: intelfb: return -ENOMEM on framebuffer_alloc() failure

Fix error code from -ENODEV to -ENOMEM.

---
 drivers/video/fbdev/intelfb/intelfbdrv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/video/fbdev/intelfb/intelfbdrv.c =================================--- a/drivers/video/fbdev/intelfb/intelfbdrv.c +++ b/drivers/video/fbdev/intelfb/intelfbdrv.c
@@ -493,7 +493,7 @@ static int intelfb_pci_register(struct p
info = framebuffer_alloc(sizeof(struct intelfb_info), &pdev->dev); if (!info) {
ERR_MSG("Could not allocate memory for intelfb_info.\n");
- return -ENODEV;
+ return -ENOMEM;
}
if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
ERR_MSG("Could not allocate cmap for intelfb_info.\n");