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

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 <>
Signed-off-by: default avatarUrsula Braun <>
Signed-off-by: default avatarDavid S. Miller <>
parent 9a4ff8d4
......@@ -889,7 +889,7 @@ lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer,
rc = lcs_ready_buffer(&card->write, buffer);
if (rc)
return rc;
timer.function = lcs_lancmd_timeout; = (unsigned long) reply;
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