Commit d62e09e3 authored by Klaus-Dieter Wacker's avatar Klaus-Dieter Wacker Committed by David S. Miller

lcs: ODEBUG: object is on stack, but not annotated.

Timer_list structure in lcs_send_lancmd() is allocated on stack.
Initialization with init_timer() leads to above ODEBUG message.
Instead use init_timer_on_stack() which prevents above msg.
Signed-off-by: default avatarKlaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a4ff8d4
...@@ -889,7 +889,7 @@ lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer, ...@@ -889,7 +889,7 @@ lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer,
rc = lcs_ready_buffer(&card->write, buffer); rc = lcs_ready_buffer(&card->write, buffer);
if (rc) if (rc)
return rc; return rc;
init_timer(&timer); init_timer_on_stack(&timer);
timer.function = lcs_lancmd_timeout; timer.function = lcs_lancmd_timeout;
timer.data = (unsigned long) reply; timer.data = (unsigned long) reply;
timer.expires = jiffies + HZ*card->lancmd_timeout; timer.expires = jiffies + HZ*card->lancmd_timeout;
......
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