]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.arch/s390-14-01-af_iucv-connect-free-path.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / s390-14-01-af_iucv-connect-free-path.patch
diff --git a/src/patches/suse-2.6.27.31/patches.arch/s390-14-01-af_iucv-connect-free-path.patch b/src/patches/suse-2.6.27.31/patches.arch/s390-14-01-af_iucv-connect-free-path.patch
deleted file mode 100644 (file)
index cd66611..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-From: Gerald Schaefer <geraldsc@de.ibm.com>
-Subject: af_iucv: avoid left over IUCV connections from failing connects
-References: bnc#514644,LTC#52270
-
-Symptom:     extra unused IUCV connections left around
-Problem:     For certain types of AFIUCV socket connect failures
-             connection cleanup is insufficient resulting in
-             left over IUCV connections.
-Solution:    Add some cleanup-statements to avoid cluttered IUCV
-             connections.
-
-Acked-by: John Jolly <jjolly@suse.de>
----
- net/iucv/af_iucv.c |   10 ++++++++--
- 1 file changed, 8 insertions(+), 2 deletions(-)
-
-Index: linux-sles11/net/iucv/af_iucv.c
-===================================================================
---- linux-sles11.orig/net/iucv/af_iucv.c
-+++ linux-sles11/net/iucv/af_iucv.c
-@@ -503,9 +503,15 @@ static int iucv_sock_connect(struct sock
-       }
-       if (sk->sk_state == IUCV_DISCONN) {
--              release_sock(sk);
--              return -ECONNREFUSED;
-+              err = -ECONNREFUSED;
-       }
-+
-+      if (err) {
-+              iucv_path_sever(iucv->path, NULL);
-+              iucv_path_free(iucv->path);
-+              iucv->path = NULL;
-+      }
-+
- done:
-       release_sock(sk);
-       return err;