fix uninitialized timer in yenta.c
PATCH 1/1 fix uninitialized timer in yenta.c
The following patch fixes a "uninitialized timer" message when loading yenta_socket.ko.
drivers/pcmcia/yenta.c renamed from drivers/pcmcia/yenta.c.jh +1 -0
@@ -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 ;
Signature · 1 line
Wenn Du nicht weißt was Du tust, tu's mit Eleganz.