diff mbox series

[1/3] video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure

Message ID bbf32fbc-b4bc-39fc-e8dd-db9f0cd0d83f@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:47 p.m. UTC
Fix error code from -ENOENT to -ENOMEM.

Cc: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
 drivers/video/fbdev/s3c-fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Han Jingoo June 18, 2019, 6:13 a.m. UTC | #1
On 6/14/19, 11:47 PM, Bartlomiej Zolnierkiewicz wrote:
> 
> Fix error code from -ENOENT to -ENOMEM.
>
> Cc: Jingoo Han <jingoohan1@gmail.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>

Best regards,
Jingoo Han

> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> ---
>  drivers/video/fbdev/s3c-fb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: b/drivers/video/fbdev/s3c-fb.c
> ===================================================================
> --- a/drivers/video/fbdev/s3c-fb.c
> +++ b/drivers/video/fbdev/s3c-fb.c
> @@ -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];
Bartlomiej Zolnierkiewicz June 28, 2019, 10:26 a.m. UTC | #2
On 6/18/19 8:13 AM, Jingoo Han wrote:
> On 6/14/19, 11:47 PM, Bartlomiej Zolnierkiewicz wrote:
>>
>> Fix error code from -ENOENT to -ENOMEM.
>>
>> Cc: Jingoo Han <jingoohan1@gmail.com>
> Acked-by: Jingoo Han <jingoohan1@gmail.com>

Thanks, 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/s3c-fb.c
===================================================================
--- a/drivers/video/fbdev/s3c-fb.c
+++ b/drivers/video/fbdev/s3c-fb.c
@@ -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];