lkml.org 
[lkml]   [2002]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.5.47: Uninitialized timer in bttv code
"Udo A. Steinberg" wrote:
>
> Hi,
>
> The bttv code in 2.5.47 triggers the following warning about use of
> uninitialized timer here. If a patch exists for this issue, I'll happily
> test it.
>

Here you go.

I need to do another full pass across the tree to pick up the dynamically
allocated timers.


--- 25/drivers/media/video/bttv-driver.c~bttv-timer Mon Nov 11 10:02:49 2002
+++ 25-akpm/drivers/media/video/bttv-driver.c Mon Nov 11 10:03:03 2002
@@ -3225,6 +3225,7 @@ static int __devinit bttv_probe(struct p
INIT_LIST_HEAD(&btv->capture);
INIT_LIST_HEAD(&btv->vcapture);

+ init_timer(&btv->timeout);
btv->timeout.function = bttv_irq_timeout;
btv->timeout.data = (unsigned long)btv;

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog