V4L/DVB (11334): pvrusb2: Fix uninitialized tuner_setup field(s)
authorMike Isely <isely@pobox.com>
Wed, 1 Apr 2009 04:55:26 +0000 (01:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:43:52 +0000 (21:43 -0300)
commitfcd62cf7f62a67976b72669934127cb4ecee2b1e
tree594819430901b6a86e0fbbdf4347c74bab666e8a
parent7bf56f94a15ac0655bfb259ce693ccab011b1363
V4L/DVB (11334): pvrusb2: Fix uninitialized tuner_setup field(s)

Any time a struct (especially one not defined by this driver) is
allocated, we MUST zero its underlying storage.  This makes our usage
of the struct predictable and robust against future changes where
fields might be added that we don't know about.  Failing to do this
with tuner_setup left the config field uninitialized which then caused
trouble with the tuner type used for HVR-1950 devices.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-hdw.c