diff mbox series

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

Message ID a659cb04-b16c-a3a0-30f4-b2f90b0d7196@samsung.com (mailing list archive)
State New, archived
Headers show
Series [1/3] video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure | expand

Commit Message

Bartlomiej Zolnierkiewicz June 14, 2019, 2:48 p.m. UTC
Fix error code from -ENODEV to -ENOMEM.

Cc: Maik Broemme <mbroemme@libmpq.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
 drivers/video/fbdev/intelfb/intelfbdrv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bartlomiej Zolnierkiewicz June 28, 2019, 10:27 a.m. UTC | #1
On 6/14/19 4:48 PM, Bartlomiej Zolnierkiewicz wrote:
> Fix error code from -ENODEV to -ENOMEM.
> 
> Cc: Maik Broemme <mbroemme@libmpq.org>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
I queued the patch for v5.3.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
diff mbox series

Patch

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");