summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/marvell-ccic/mcam-core.h
diff options
context:
space:
mode:
authorHans Verkuil2013-05-29 12:00:02 +0200
committerMauro Carvalho Chehab2013-06-17 13:54:44 +0200
commit4e032f3f58800a998bae79150909410d7a37206f (patch)
tree89f74545ade5eded447a10e3cbe85347fd49a966 /drivers/media/platform/marvell-ccic/mcam-core.h
parent[media] vpbe_display: drop g/s_register ioctls (diff)
downloadkernel-qcow2-linux-4e032f3f58800a998bae79150909410d7a37206f.tar.gz
kernel-qcow2-linux-4e032f3f58800a998bae79150909410d7a37206f.tar.xz
kernel-qcow2-linux-4e032f3f58800a998bae79150909410d7a37206f.zip
[media] marvell-ccic: check register address
Prevent out-of-range register accesses. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/marvell-ccic/mcam-core.h')
-rw-r--r--drivers/media/platform/marvell-ccic/mcam-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/marvell-ccic/mcam-core.h b/drivers/media/platform/marvell-ccic/mcam-core.h
index 46b6ea31e66b..520c8ded9443 100644
--- a/drivers/media/platform/marvell-ccic/mcam-core.h
+++ b/drivers/media/platform/marvell-ccic/mcam-core.h
@@ -101,6 +101,7 @@ struct mcam_camera {
*/
struct i2c_adapter *i2c_adapter;
unsigned char __iomem *regs;
+ unsigned regs_size; /* size in bytes of the register space */
spinlock_t dev_lock;
struct device *dev; /* For messages, dma alloc */
enum mcam_chip_id chip_id;