Skip to content

Commit

Permalink
s390/tape: 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 02ba8d2 commit 50f0e3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/s390/char/tape_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ tape_std_assign(struct tape_device *device)
rc = tape_do_io_interruptible(device, request);

del_timer_sync(&timeout);
destroy_timer_on_stack(&timeout);

if (rc != 0) {
DBF_EVENT(3, "%08x: assign failed - device might be busy\n",
Expand Down

0 comments on commit 50f0e3b

Please sign in to comment.