[patch 29/38] vmlogrdr: stop IUCV connection in vmlogrdr_release.

Martin Schwidefsky
2007-04-27T14:12:36Z

[-- Attachment #1: 132-vmlogrdr-iucv.diff --]
[-- Type: text/plain, Size: 993 bytes --]

From: Ursula Braun <braunu@de.ibm.com>

Reopen of /dev/account failed. The IUCV path has to be terminated
in vmlogrdr_release.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---

drivers/s390/char/vmlogrdr.c | 3 +++
1 files changed, 3 insertions(+)

Index: quilt-2.6/drivers/s390/char/vmlogrdr.c
===================================================================
--- quilt-2.6.orig/drivers/s390/char/vmlogrdr.c 2007-04-27 16:01:49.000000000 +0200
+++ quilt-2.6/drivers/s390/char/vmlogrdr.c 2007-04-27 16:04:59.000000000 +0200
@@ -385,6 +385,9 @@

struct vmlogrdr_priv_t * logptr = filp->private_data;

+ iucv_path_sever(logptr->path, NULL);
+ kfree(logptr->path);
+ logptr->path = NULL;
if (logptr->autorecording) {
ret = vmlogrdr_recording(logptr,0,logptr->autopurge);
if (ret)