summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat2013-04-30 07:16:19 +0200
committerMauro Carvalho Chehab2013-05-21 13:36:28 +0200
commit8410725333088643f49371396e727cc1e41ccfb5 (patch)
tree6ca13dcab5e459ac79294ea8f50ac8f1caa5d459
parent[media] exynos4-is: Fix potential null pointer dereference in mipi-csis.c (diff)
downloadkernel-qcow2-linux-8410725333088643f49371396e727cc1e41ccfb5.tar.gz
kernel-qcow2-linux-8410725333088643f49371396e727cc1e41ccfb5.tar.xz
kernel-qcow2-linux-8410725333088643f49371396e727cc1e41ccfb5.zip
[media] s3c-camif: Fix incorrect variable type
'rotation' was an 8 bit variable and hence could not have values greater than 255. Since we need higher values, change it to 16 bit type. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/platform/s3c-camif/camif-core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s3c-camif/camif-core.h b/drivers/media/platform/s3c-camif/camif-core.h
index 261134baa655..35d2fcdc0036 100644
--- a/drivers/media/platform/s3c-camif/camif-core.h
+++ b/drivers/media/platform/s3c-camif/camif-core.h
@@ -229,7 +229,7 @@ struct camif_vp {
unsigned int state;
u16 fmt_flags;
u8 id;
- u8 rotation;
+ u16 rotation;
u8 hflip;
u8 vflip;
unsigned int offset;