net/smc: recvmsg and splice_read should return 0 after shutdown
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 30 Jan 2019 17:51:04 +0000 (18:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 22:45:45 +0000 (14:45 -0800)
commit51c5aba3b672c4285fca052817f34b22dc79dda7
tree7a53022bef0acdf4f2d067a9140eb9a3bbaea271
parent6889b36da78a21a312d8b462c1fa25a03c2ff192
net/smc: recvmsg and splice_read should return 0 after shutdown

When a socket was connected and is now shut down for read, return 0 to
indicate end of data in recvmsg and splice_read (like TCP) and do not
return ENOTCONN. This behavior is required by the socket api.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c