diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-03-23 16:09:25 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-04-01 09:23:37 +0200 |
commit | 50f0e3bc93d86d0df6805eb55c58302d27a5cfca (patch) | |
tree | 44f0088617a2559d458ad61244374a0c1a2a9dc2 /drivers/s390 | |
parent | s390/tape: Use del_timer_sync() (diff) | |
download | linux-50f0e3bc93d86d0df6805eb55c58302d27a5cfca.tar.xz linux-50f0e3bc93d86d0df6805eb55c58302d27a5cfca.zip |
s390/tape: 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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/tape_std.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index cf577a2b13ac..3478e19ae194 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c @@ -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", |