From: Bartlomiej Zolnierkiewicz Date: Fri, 28 Jun 2019 10:30:05 +0000 (+0200) Subject: video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=602ecfbc04562802bdf9fd443ce96b836b7ecc9e;p=openwrt%2Fstaging%2Fblogic.git video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure Fix error code from -ENOENT to -ENOMEM. Acked-by: Jingoo Han Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/s3c-fb.c b/drivers/video/fbdev/s3c-fb.c index 9ec85ccd0ce9..9ff7bf51a050 100644 --- 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_fb *sfb, unsigned int win_no, 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];