]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/media/video/pvrusb2/pvrusb2-hdw.c
V4L/DVB (11334): pvrusb2: Fix uninitialized tuner_setup field(s)
[karo-tx-linux.git] / drivers / media / video / pvrusb2 / pvrusb2-hdw.c
index 7a65b42a4f53571abdba88c11d36bd83c7fad011..cdd8b13a19aea50dd5c8b247b3cbe47fb73550e9 100644 (file)
@@ -2926,6 +2926,7 @@ static void pvr2_subdev_update(struct pvr2_hdw *hdw)
                pvr2_trace(PVR2_TRACE_CHIPS, "subdev tuner set_type(%d)",
                           hdw->tuner_type);
                if (((int)(hdw->tuner_type)) >= 0) {
+                       memset(&setup, 0, sizeof(setup));
                        setup.addr = ADDR_UNSET;
                        setup.type = hdw->tuner_type;
                        setup.mode_mask = T_RADIO | T_ANALOG_TV;