projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ba419
)
MLK-16353-2 video: fbdev: dcss: non-fourcc format should not pass var check
author
Fancy Fang
<chen.fang@nxp.com>
Mon, 4 Sep 2017 02:31:55 +0000
(10:31 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:27 +0000
(15:38 -0500)
The non-fourcc pixel format for framebuffer is not supported
yet, so the var check cannot pass in this case. Add false
return in this case.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/video/fbdev/mxc/imx_dcss.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/mxc/imx_dcss.c
b/drivers/video/fbdev/mxc/imx_dcss.c
index
ffd4c8f
..
7c70216
100644
(file)
--- a/
drivers/video/fbdev/mxc/imx_dcss.c
+++ b/
drivers/video/fbdev/mxc/imx_dcss.c
@@
-2423,7
+2423,6
@@
static int dcss_check_var(struct fb_var_screeninfo *var,
switch (var->grayscale) {
case 0: /* TODO: color */
- break;
case 1: /* grayscale */
return -EINVAL;
default: /* fourcc */