mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
lcs: Add missing destroy_timer_on_stack()
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>
This commit is contained in:
parent
50f0e3bc93
commit
12797e8e9d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue