summaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-10-26 14:54:01 +0900
committerJingoo Han <jg1.han@samsung.com>2012-11-26 13:35:36 +0900
commit418d620e080f3d17735be8ee95a2f40c0e6edc3e (patch)
tree87bbab270c4397acea2d46fd43dbcc8992d13d79 /drivers/video/s3c-fb.c
parentd65c6a99bccca167df8ddcb93a2190f048727914 (diff)
video: s3c-fb: return an error when bpp is invalid
This patch returns an error, when bpp is invalid in s3c_fb_check_var(). If invalid bpp is requested, an error should be returned. Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 9cee67c08d9..21e5d79ce65 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -330,6 +330,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,
default:
dev_err(sfb->dev, "invalid bpp\n");
+ return -EINVAL;
}
dev_dbg(sfb->dev, "%s: verified parameters\n", __func__);