[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <bbf32fbc-b4bc-39fc-e8dd-db9f0cd0d83f@samsung.com>
Date: Fri, 14 Jun 2019 16:47:34 +0200
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
To: linux-fbdev@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Cc: Jingoo Han <jingoohan1@...il.com>
Subject: [PATCH 1/3] video: fbdev: s3c-fb: return -ENOMEM on
framebuffer_alloc() failure
Fix error code from -ENOENT to -ENOMEM.
Cc: Jingoo Han <jingoohan1@...il.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.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];
Powered by blists - more mailing lists