sctp: return true only for pathmtu update in sctp_transport_pl_toobig
authorXin Long <lucien.xin@gmail.com>
Thu, 28 Oct 2021 09:36:04 +0000 (05:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:43 +0000 (19:16 +0100)
commita1fafee96a7a622b2d1e824bac4cd15a9e1288e9
treed11fd5f797f30f33f4c656bdd71f4051f003df4b
parent554153b1cd01203fc462f814749b37fe081121a8
sctp: return true only for pathmtu update in sctp_transport_pl_toobig

[ Upstream commit 75cf662c64dd8543f56c329c69eba18141c8fd9f ]

sctp_transport_pl_toobig() supposes to return true only if there's
pathmtu update, so that in sctp_icmp_frag_needed() it would call
sctp_assoc_sync_pmtu() and sctp_retransmit(). This patch is to fix
these return places in sctp_transport_pl_toobig().

Fixes: 836964083177 ("sctp: do state transition when receiving an icmp TOOBIG packet")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sctp/transport.c