video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 28 Jun 2019 10:30:05 +0000 (12:30 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 28 Jun 2019 10:30:05 +0000 (12:30 +0200)
Fix error code from -ENOENT to -ENOMEM.

Acked-by: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/s3c-fb.c

index 9ec85ccd0ce96f1c0ae36552ebdaa6fd1764358d..9ff7bf51a0507b01a12d832c4193c25f52de6807 100644 (file)
@@ -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];