net: stmmac: ptp: fix potentially overflowing expression
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>
Thu, 23 Dec 2021 07:39:28 +0000 (15:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:28:46 +0000 (12:28 +0100)
commitbe2473e5f377fb7fe471a5096f37a2d73a8367e6
tree4701794d22885615998eaba7c444d4ef8e9d70fd
parentd2269ae48598e05b59ec9ea9e6e44fd33941130d
net: stmmac: ptp: fix potentially overflowing expression

[ Upstream commit eccffcf4657ab9a148faaa0eb354d2a091caf552 ]

Convert the u32 variable to type u64 in a context where expression of
type u64 is required to avoid potential overflow.

Fixes: e9e3720002f6 ("net: stmmac: ptp: update tas basetime after ptp adjust")
Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Link: https://lore.kernel.org/r/20211223073928.37371-1-xiaoliang.yang_1@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c