]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: check skb_linearize() return value in tipc_disc_rcv()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 19 Nov 2022 07:28:32 +0000 (15:28 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Nov 2022 04:50:24 +0000 (20:50 -0800)
commite6fddc47d5f54c109e99d6d4a76a9734cd2d34a8
treeda89b5d2b4c2a53621e6eae451b5e7a749173cea
parentbc562e33e1c5b91c964828795c18629434a205b7
tipc: check skb_linearize() return value in tipc_disc_rcv()

If skb_linearize() fails in tipc_disc_rcv(), we need to free the skb instead of
handle it.

Fixes: b8bd0db28fc0 ("tipc: handle collisions of 32-bit node address hash values")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jon Maloy <jmaloy@redhat.com>
Link: https://lore.kernel.org/r/20221119072832.7896-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tipc/discover.c