mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5.53, PATCH] fix uninitialized timer in yenta.c
@ 2002-12-28  9:07 Jochen Hein
  0 siblings, 0 replies; only message in thread
From: Jochen Hein @ 2002-12-28  9:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds


The following patch fixes a "uninitialized timer" message when loading
yenta_socket.ko.

--- linux-2.5.53/drivers/pcmcia/yenta.c.jh	2002-12-10 03:46:11.000000000 +0100
+++ linux-2.5.53/drivers/pcmcia/yenta.c	2002-12-28 09:45:56.000000000 +0100
@@ -593,6 +593,7 @@
 	if (!socket->cb_irq || request_irq(socket->cb_irq, yenta_interrupt, SA_SHIRQ, socket->dev->dev.name, socket)) {
 		/* No IRQ or request_irq failed. Poll */
 		socket->cb_irq = 0; /* But zero is a valid IRQ number. */
+		init_timer(&socket->poll_timer);
 		socket->poll_timer.function = yenta_interrupt_wrapper;
 		socket->poll_timer.data = (unsigned long)socket;
 		socket->poll_timer.expires = jiffies + HZ;

-- 
Wenn Du nicht weißt was Du tust, tu's mit Eleganz.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-28  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-28  9:07 [2.5.53, PATCH] fix uninitialized timer in yenta.c Jochen Hein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®