* [PATCH 2/3] video: s3c-fb: return an error when bpp is invalid
@ 2012-10-26 7:01 Jingoo Han
0 siblings, 0 replies; only message in thread
From: Jingoo Han @ 2012-10-26 7:01 UTC (permalink / raw)
To: linux-fbdev
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>
---
drivers/video/s3c-fb.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 89cd278..f453b8b 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__);
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-26 7:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 7:01 [PATCH 2/3] video: s3c-fb: return an error when bpp is invalid Jingoo Han
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox