Re: [PATCH net 1/1] net/smc: use announced length in sock_recvmsg()

2018-03-27 Thread David Miller
From: Ursula Braun Date: Tue, 27 Mar 2018 10:43:50 +0200 > Not every CLC proposal message needs the maximum buffer length. > Due to the MSG_WAITALL flag, it is important to use the peeked > real length when receiving the message. > > Fixes: d63d271ce2b5ce ("smc:

[PATCH net 1/1] net/smc: use announced length in sock_recvmsg()

2018-03-27 Thread Ursula Braun
Not every CLC proposal message needs the maximum buffer length. Due to the MSG_WAITALL flag, it is important to use the peeked real length when receiving the message. Fixes: d63d271ce2b5ce ("smc: switch to sock_recvmsg()") Signed-off-by: Ursula Braun ---