video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): CGME20190614144735eucas1p2f71313b752ae4ea841ddd4ea502fd79f@eucas1p2.samsung.com
PATCH 1/3 video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure
Fix error code from -ENOENT to -ENOMEM.
Cc Jingoo Han <[email protected]>
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/video/fbdev/s3c-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/s3c-fb.c +1 -1
@@ -1191,7 +1191,7 @@ static int s3c_fb_probe_win(struct s3c_f palette_size * sizeof(u32), sfb->dev);if (!fbinfo) {dev_err (sfb->dev,"failed to allocate framebuffer\n" ); -return -ENOENT ; +return -ENOMEM ; } windata = sfb->pdata->win[win_no];
Quoted 4 lines · Bartlomiej Zolnierkiewicz
Fix error code from
-ENOENTto-ENOMEM.Cc Jingoo Han <[email protected]>
Acked-by Jingoo Han <[email protected]>
Best regards,
Jingoo Han
Quoted 18 lines
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>--- drivers/video/fbdev/s3c-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
b/drivers/video/fbdev/s3c-fb.c
===================================================================drivers/video/fbdev/s3c-fb.c +1
-1@@ -1191,7 +1191,7 @@ static int s3c_fb_probe_win(struct s3c_f palette_size * sizeof(u32), sfb->dev);if (!fbinfo) {dev_err (sfb->dev,"failed to allocate framebuffer\n" ); -return -ENOENT ; +return -ENOMEM ; } windata = sfb->pdata->win[win_no];
Quoted 6 lines · Jingoo Han
Quoted 4 lines · Bartlomiej Zolnierkiewicz
Fix error code from
-ENOENTto-ENOMEM.Cc Jingoo Han <[email protected]>Acked-by Jingoo Han <[email protected]>
Thanks, I queued the patch for v5.3.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics