diff options
Diffstat (limited to 'drivers/s390/cio/device_ops.c')
-rw-r--r-- | drivers/s390/cio/device_ops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/s390/cio/device_ops.c b/drivers/s390/cio/device_ops.c index ad3fe5aeb663..85a3026e6900 100644 --- a/drivers/s390/cio/device_ops.c +++ b/drivers/s390/cio/device_ops.c | |||
@@ -550,10 +550,8 @@ ccw_device_stlck(struct ccw_device *cdev) | |||
550 | /* Clear irb. */ | 550 | /* Clear irb. */ |
551 | memset(&cdev->private->irb, 0, sizeof(struct irb)); | 551 | memset(&cdev->private->irb, 0, sizeof(struct irb)); |
552 | out_unlock: | 552 | out_unlock: |
553 | if (buf) | 553 | kfree(buf); |
554 | kfree(buf); | 554 | kfree(buf2); |
555 | if (buf2) | ||
556 | kfree(buf2); | ||
557 | spin_unlock_irqrestore(&sch->lock, flags); | 555 | spin_unlock_irqrestore(&sch->lock, flags); |
558 | return ret; | 556 | return ret; |
559 | } | 557 | } |