projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55cdea9
)
af_iucv: avoid left over IUCV connections from failing connects
author
Ursula Braun
<ursula.braun@de.ibm.com>
Tue, 6 Jan 2009 02:07:46 +0000
(18:07 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 6 Jan 2009 02:07:46 +0000
(18:07 -0800)
For certain types of AFIUCV socket connect failures IUCV connections
are left over. Add some cleanup-statements to avoid cluttered IUCV
connections.
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c
patch
|
blob
|
blame
|
history
diff --git
a/net/iucv/af_iucv.c
b/net/iucv/af_iucv.c
index 1077bc4e6e2a1f90076ff59a3943935477631d12..6b5f193e5f48da451cb7a5a5839682aabd2b1a8f 100644
(file)
--- a/
net/iucv/af_iucv.c
+++ b/
net/iucv/af_iucv.c
@@
-521,6
+521,13
@@
static int iucv_sock_connect(struct socket *sock, struct sockaddr *addr,
release_sock(sk);
return -ECONNREFUSED;
}
+
+ if (err) {
+ iucv_path_sever(iucv->path, NULL);
+ iucv_path_free(iucv->path);
+ iucv->path = NULL;
+ }
+
done:
release_sock(sk);
return err;