tipc: fix a bit overflow in tipc_crypto_key_rcv()
authorHangyu Hua <hbh25y@gmail.com>
Fri, 11 Feb 2022 04:55:10 +0000 (12:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Feb 2022 12:12:25 +0000 (12:12 +0000)
commit143de8d97d79316590475dc2a84513c63c863ddf
treeb47e1bff716dffcd7249b60826b6690e3175ef90
parentbf8e59fd315f304eb538546e35de6dc603e4709f
tipc: fix a bit overflow in tipc_crypto_key_rcv()

msg_data_sz return a 32bit value, but size is 16bit. This may lead to a
bit overflow.

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/crypto.c