diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 22:27:01 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:40 -0500 |
commit | 293b5d94ebf1e591a6672d0c34d4559e935cd2dc (patch) | |
tree | 37f754298fe7a09aedfcb3636b5d30ee3c2a0235 /drivers | |
parent | 11fc76c9a8b24984d5ff701bc1f77940e04d5077 (diff) |
V4L/DVB (5087): Pvrusb2: Fix sizeof() calculation foul-up
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c index 540233e9d6b7..1a8507926676 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | |||
@@ -597,7 +597,7 @@ void pvr2_i2c_core_status_poll(struct pvr2_hdw *hdw) | |||
597 | struct pvr2_i2c_client *cp; | 597 | struct pvr2_i2c_client *cp; |
598 | mutex_lock(&hdw->i2c_list_lock); do { | 598 | mutex_lock(&hdw->i2c_list_lock); do { |
599 | struct v4l2_tuner *vtp = &hdw->tuner_signal_info; | 599 | struct v4l2_tuner *vtp = &hdw->tuner_signal_info; |
600 | memset(vtp,0,sizeof(vtp)); | 600 | memset(vtp,0,sizeof(*vtp)); |
601 | list_for_each(item,&hdw->i2c_clients) { | 601 | list_for_each(item,&hdw->i2c_clients) { |
602 | cp = list_entry(item,struct pvr2_i2c_client,list); | 602 | cp = list_entry(item,struct pvr2_i2c_client,list); |
603 | if (!cp->detected_flag) continue; | 603 | if (!cp->detected_flag) continue; |