Re: [2.5] pcnet_cs, uninitialized timer when removing

Andrew Morton (akpm@digeo.com)
Fri, 22 Nov 2002 10:19:22 -0800


Jochen Hein wrote:
>
> When I remove the card I get:
>
> ...
>
> Trace; c0121660 <check_timer_failed+40/4c>
> Trace; c6ab9e64 <[pcnet_cs]pcnet_release+0/74>

Thanks, I'll fix that up.

--- 25/drivers/net/pcmcia/pcnet_cs.c~timer-mopup Fri Nov 22 10:16:49 2002
+++ 25-akpm/drivers/net/pcmcia/pcnet_cs.c Fri Nov 22 10:17:09 2002
@@ -300,7 +300,8 @@ static dev_link_t *pcnet_attach(void)
memset(info, 0, sizeof(*info));
link = &info->link; dev = &info->dev;
link->priv = info;
-
+
+ init_timer(&link->release);
link->release.function = &pcnet_release;
link->release.data = (u_long)link;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;

_
-
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/