V4L/DVB (13208): cx23885: fix uninitialized member bug
authorDavid T.L. Wong <davidtlwong@gmail.com>
Wed, 21 Oct 2009 14:08:30 +0000 (11:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:53 +0000 (18:40 -0200)
Signed-off-by: David T. L. Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx23885/cx23885-video.c

index eebd52eb3dcd45d2282f7cae6921665ef8bd28a4..e14cb39d8412fcaf477caa5a721bb5dfc0e2c23f 100644 (file)
@@ -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);