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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/14/19, 11:47 PM, Bartlomiej Zolnierkiewicz wrote:
> 
> Fix error code from -ENOENT to -ENOMEM.
>
> Cc: Jingoo Han <jingoohan1@xxxxxxxxx>
Acked-by: Jingoo Han <jingoohan1@xxxxxxxxx>

Best regards,
Jingoo Han

> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx>
> ---
>  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];
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux