diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2010-10-29 16:50:44 +0200 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-10-29 16:50:50 +0200 |
commit | f2166bb117952404689f0dc42624ee0b54a66e5e (patch) | |
tree | d77eebb80e4f0206a07f574ecd2af87f745d4bc3 /drivers/s390/char/tape_std.c | |
parent | 196339f1733726ffd69ab81ec1c66678585f5846 (diff) | |
download | linux-stable-f2166bb117952404689f0dc42624ee0b54a66e5e.tar.gz linux-stable-f2166bb117952404689f0dc42624ee0b54a66e5e.tar.bz2 linux-stable-f2166bb117952404689f0dc42624ee0b54a66e5e.zip |
[S390] tape: fix dbf usage
Get rid of the format string "%s" usage with volatile strings
to prevent use after free errors in the s390dbf.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/tape_std.c')
-rw-r--r-- | drivers/s390/char/tape_std.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index 03f07e5dd6e9..3c3f342149ec 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c @@ -47,8 +47,8 @@ tape_std_assign_timeout(unsigned long data) device->cdev_id); rc = tape_cancel_io(device, request); if(rc) - DBF_EVENT(3, "(%s): Assign timeout: Cancel failed with rc = %i\n", - dev_name(&device->cdev->dev), rc); + DBF_EVENT(3, "(%08x): Assign timeout: Cancel failed with rc = " + "%i\n", device->cdev_id, rc); } int |