Skip to content
Commit ab6f6dd1 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: use announced length in sock_recvmsg()



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: d63d271c ("smc: switch to sock_recvmsg()")
Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b85ab56c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment