Commit f005d73a authored by Jochen Hein's avatar Jochen Hein Committed by Linus Torvalds

[PATCH] fix uninitialized timer in yenta.c

The following patch fixes a "uninitialized timer" message when loading
yenta_socket.ko.
parent d335b16a
...@@ -593,6 +593,7 @@ static void yenta_open_bh(void * data) ...@@ -593,6 +593,7 @@ static void yenta_open_bh(void * data)
if (!socket->cb_irq || request_irq(socket->cb_irq, yenta_interrupt, SA_SHIRQ, socket->dev->dev.name, socket)) { 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 */ /* No IRQ or request_irq failed. Poll */
socket->cb_irq = 0; /* But zero is a valid IRQ number. */ 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.function = yenta_interrupt_wrapper;
socket->poll_timer.data = (unsigned long)socket; socket->poll_timer.data = (unsigned long)socket;
socket->poll_timer.expires = jiffies + HZ; socket->poll_timer.expires = jiffies + HZ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment