Skip to content

Commit

Permalink
lcs: Add missing destroy_timer_on_stack()
Browse files Browse the repository at this point in the history
Otherwise we leak a tracking object when DEBUG_OBJECTS is enabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Thomas Gleixner authored and Martin Schwidefsky committed Apr 1, 2014
1 parent 50f0e3b commit 12797e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/s390/net/lcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer,
add_timer(&timer);
wait_event(reply->wait_q, reply->received);
del_timer_sync(&timer);
destroy_timer_on_stack(&timer);
LCS_DBF_TEXT_(4, trace, "rc:%d",reply->rc);
rc = reply->rc;
lcs_put_reply(reply);
Expand Down

0 comments on commit 12797e8

Please sign in to comment.