V4L/DVB (5087): Pvrusb2: Fix sizeof() calculation foul-up
authorMike Isely <isely@pobox.com>
Sat, 20 Jan 2007 03:27:01 +0000 (00:27 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:40 +0000 (13:34 -0200)
This bug caused uninitalized data to be returned during a G_TUNER status poll.

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

index 540233e9d6b78a3881f38bfbd799eb06decc1dfe..1a8507926676fa28cac3c37e17f35c72fd1136e6 100644 (file)
@@ -597,7 +597,7 @@ void pvr2_i2c_core_status_poll(struct pvr2_hdw *hdw)
        struct pvr2_i2c_client *cp;
        mutex_lock(&hdw->i2c_list_lock); do {
                struct v4l2_tuner *vtp = &hdw->tuner_signal_info;
-               memset(vtp,0,sizeof(vtp));
+               memset(vtp,0,sizeof(*vtp));
                list_for_each(item,&hdw->i2c_clients) {
                        cp = list_entry(item,struct pvr2_i2c_client,list);
                        if (!cp->detected_flag) continue;