Commit f2166bb1 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky

[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: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 196339f1
...@@ -1077,15 +1077,14 @@ __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) ...@@ -1077,15 +1077,14 @@ __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb)
/* FIXME: What to do with the request? */ /* FIXME: What to do with the request? */
switch (PTR_ERR(irb)) { switch (PTR_ERR(irb)) {
case -ETIMEDOUT: case -ETIMEDOUT:
DBF_LH(1, "(%s): Request timed out\n", DBF_LH(1, "(%08x): Request timed out\n",
dev_name(&cdev->dev)); device->cdev_id);
case -EIO: case -EIO:
__tape_end_request(device, request, -EIO); __tape_end_request(device, request, -EIO);
break; break;
default: default:
DBF_LH(1, "(%s): Unexpected i/o error %li\n", DBF_LH(1, "(%08x): Unexpected i/o error %li\n",
dev_name(&cdev->dev), device->cdev_id, PTR_ERR(irb));
PTR_ERR(irb));
} }
return; return;
} }
......
...@@ -47,8 +47,8 @@ tape_std_assign_timeout(unsigned long data) ...@@ -47,8 +47,8 @@ tape_std_assign_timeout(unsigned long data)
device->cdev_id); device->cdev_id);
rc = tape_cancel_io(device, request); rc = tape_cancel_io(device, request);
if(rc) if(rc)
DBF_EVENT(3, "(%s): Assign timeout: Cancel failed with rc = %i\n", DBF_EVENT(3, "(%08x): Assign timeout: Cancel failed with rc = "
dev_name(&device->cdev->dev), rc); "%i\n", device->cdev_id, rc);
} }
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment