diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 21:27:01 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-19 21:27:01 -0600 |
commit | eb5539384fc4026586b17b6c80da65362cb072bd (patch) | |
tree | e185242837508732fa80420b88756c0e9058b07a /linux/drivers | |
parent | bd2354ac79200fe78bec87c92a82a2d81ed86343 (diff) | |
download | mediapointer-dvb-s2-eb5539384fc4026586b17b6c80da65362cb072bd.tar.gz mediapointer-dvb-s2-eb5539384fc4026586b17b6c80da65362cb072bd.tar.bz2 |
pvrusb2: Fix sizeof() calculation foul-up
From: Mike Isely <isely@pobox.com>
This bug caused uninitalized data to be returned during a G_TUNER status poll.
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c index c344bfe76..b718c6b62 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c @@ -680,7 +680,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; |