mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure
Fix error code from -ENOENT to -ENOMEM. Acked-by: Jingoo Han <jingoohan1@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
c2d3c8a424
commit
602ecfbc04
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user