aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2020-11-10 18:08:21 -0800
committerJakub Kicinski <[email protected]>2020-11-10 18:08:21 -0800
commite87d24fce924bfcef9714bbaeb1514162420052e (patch)
tree5dae44e357f529e2ae70154b4885f33228af76af
parent2b52a4b65bc8f14520fe6e996ea7fb3f7e400761 (diff)
parent4711497ae85d90de903671989daf5145054c123e (diff)
Merge branch 'net-iucv-fixes-2020-11-09'
Julian Wiedmann says: ==================== net/iucv: fixes 2020-11-09 One fix in the shutdown path for af_iucv sockets. This is relevant for stable as well. Also sending along an update for the Maintainers file. v1 -> v2: use the correct Fixes tag in patch 1 (Jakub) ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--MAINTAINERS3
-rw-r--r--net/iucv/af_iucv.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index cd123d0a6a2d..fa11fe773df5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -15246,7 +15246,6 @@ F: drivers/iommu/s390-iommu.c
S390 IUCV NETWORK LAYER
M: Julian Wiedmann <[email protected]>
M: Karsten Graul <[email protected]>
-M: Ursula Braun <[email protected]>
S: Supported
W: http://www.ibm.com/developerworks/linux/linux390/
@@ -15257,7 +15256,6 @@ F: net/iucv/
S390 NETWORK DRIVERS
M: Julian Wiedmann <[email protected]>
M: Karsten Graul <[email protected]>
-M: Ursula Braun <[email protected]>
S: Supported
W: http://www.ibm.com/developerworks/linux/linux390/
@@ -15828,7 +15826,6 @@ S: Maintained
F: drivers/misc/sgi-xp/
SHARED MEMORY COMMUNICATIONS (SMC) SOCKETS
-M: Ursula Braun <[email protected]>
M: Karsten Graul <[email protected]>
S: Supported
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index d80572074667..047238f01ba6 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -1434,7 +1434,8 @@ static int iucv_sock_shutdown(struct socket *sock, int how)
break;
}
- if (how == SEND_SHUTDOWN || how == SHUTDOWN_MASK) {
+ if ((how == SEND_SHUTDOWN || how == SHUTDOWN_MASK) &&
+ sk->sk_state == IUCV_CONNECTED) {
if (iucv->transport == AF_IUCV_TRANS_IUCV) {
txmsg.class = 0;
txmsg.tag = 0;