diff options
author | Klaus-Dieter Wacker <kdwacker@de.ibm.com> | 2009-10-14 18:54:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-18 02:57:21 -0400 |
commit | d62e09e34eba15be382a7aed27b0fa67112e29e0 (patch) | |
tree | 06207d14939f8f23b135d1b5cdabcad17bbd529a /drivers/s390 | |
parent | 9a4ff8d417e4ef2eeecb4a4433e3dbd8251aae5e (diff) |
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: Klaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/lcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index a70de9b4bf29..f8dfd70a89d9 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -889,7 +889,7 @@ lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer, | |||
889 | rc = lcs_ready_buffer(&card->write, buffer); | 889 | rc = lcs_ready_buffer(&card->write, buffer); |
890 | if (rc) | 890 | if (rc) |
891 | return rc; | 891 | return rc; |
892 | init_timer(&timer); | 892 | init_timer_on_stack(&timer); |
893 | timer.function = lcs_lancmd_timeout; | 893 | timer.function = lcs_lancmd_timeout; |
894 | timer.data = (unsigned long) reply; | 894 | timer.data = (unsigned long) reply; |
895 | timer.expires = jiffies + HZ*card->lancmd_timeout; | 895 | timer.expires = jiffies + HZ*card->lancmd_timeout; |