summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid T.L. Wong <davidtlwong@gmail.com>2009-10-21 11:08:30 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:40:53 -0200
commitfd705e7cd8ef61efc443b90f94afed42beabeacd (patch)
tree569e0f18098d262af2da8ffa4f1350035d9ef76f
parentdac65fa169ebf9fb1bd488385c62b5dd0c71771c (diff)
downloadop-kernel-dev-fd705e7cd8ef61efc443b90f94afed42beabeacd.zip
op-kernel-dev-fd705e7cd8ef61efc443b90f94afed42beabeacd.tar.gz
V4L/DVB (13208): cx23885: fix uninitialized member bug
Signed-off-by: David T. L. Wong <davidtlwong@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/cx23885/cx23885-video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c
index eebd52e..e14cb39 100644
--- a/drivers/media/video/cx23885/cx23885-video.c
+++ b/drivers/media/video/cx23885/cx23885-video.c
@@ -1504,6 +1504,7 @@ int cx23885_video_register(struct cx23885_dev *dev)
if (sd) {
struct tuner_setup tun_setup;
+ memset(&tun_setup, 0, sizeof(tun_setup));
tun_setup.mode_mask = T_ANALOG_TV;
tun_setup.type = dev->tuner_type;
tun_setup.addr = v4l2_i2c_subdev_addr(sd);
OpenPOWER on IntegriCloud