diff options
author | David T.L. Wong <davidtlwong@gmail.com> | 2009-10-21 10:08:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:53 -0500 |
commit | fd705e7cd8ef61efc443b90f94afed42beabeacd (patch) | |
tree | 569e0f18098d262af2da8ffa4f1350035d9ef76f /drivers/media/video/cx23885/cx23885-video.c | |
parent | dac65fa169ebf9fb1bd488385c62b5dd0c71771c (diff) |
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>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 1 |
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 eebd52eb3dcd..e14cb39d8412 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) | |||
1504 | if (sd) { | 1504 | if (sd) { |
1505 | struct tuner_setup tun_setup; | 1505 | struct tuner_setup tun_setup; |
1506 | 1506 | ||
1507 | memset(&tun_setup, 0, sizeof(tun_setup)); | ||
1507 | tun_setup.mode_mask = T_ANALOG_TV; | 1508 | tun_setup.mode_mask = T_ANALOG_TV; |
1508 | tun_setup.type = dev->tuner_type; | 1509 | tun_setup.type = dev->tuner_type; |
1509 | tun_setup.addr = v4l2_i2c_subdev_addr(sd); | 1510 | tun_setup.addr = v4l2_i2c_subdev_addr(sd); |