Skip to content

Commit e87d24f

Browse files
committed
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/20201109075706.56573-1-jwi@linux.ibm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 2b52a4b + 4711497 commit e87d24f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

MAINTAINERS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15246,7 +15246,6 @@ F: drivers/iommu/s390-iommu.c
1524615246
S390 IUCV NETWORK LAYER
1524715247
M: Julian Wiedmann <jwi@linux.ibm.com>
1524815248
M: Karsten Graul <kgraul@linux.ibm.com>
15249-
M: Ursula Braun <ubraun@linux.ibm.com>
1525015249
L: linux-s390@vger.kernel.org
1525115250
S: Supported
1525215251
W: http://www.ibm.com/developerworks/linux/linux390/
@@ -15257,7 +15256,6 @@ F: net/iucv/
1525715256
S390 NETWORK DRIVERS
1525815257
M: Julian Wiedmann <jwi@linux.ibm.com>
1525915258
M: Karsten Graul <kgraul@linux.ibm.com>
15260-
M: Ursula Braun <ubraun@linux.ibm.com>
1526115259
L: linux-s390@vger.kernel.org
1526215260
S: Supported
1526315261
W: http://www.ibm.com/developerworks/linux/linux390/
@@ -15828,7 +15826,6 @@ S: Maintained
1582815826
F: drivers/misc/sgi-xp/
1582915827

1583015828
SHARED MEMORY COMMUNICATIONS (SMC) SOCKETS
15831-
M: Ursula Braun <ubraun@linux.ibm.com>
1583215829
M: Karsten Graul <kgraul@linux.ibm.com>
1583315830
L: linux-s390@vger.kernel.org
1583415831
S: Supported

net/iucv/af_iucv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,8 @@ static int iucv_sock_shutdown(struct socket *sock, int how)
14341434
break;
14351435
}
14361436

1437-
if (how == SEND_SHUTDOWN || how == SHUTDOWN_MASK) {
1437+
if ((how == SEND_SHUTDOWN || how == SHUTDOWN_MASK) &&
1438+
sk->sk_state == IUCV_CONNECTED) {
14381439
if (iucv->transport == AF_IUCV_TRANS_IUCV) {
14391440
txmsg.class = 0;
14401441
txmsg.tag = 0;

0 commit comments

Comments
 (0)