Skip to content
Commit c2258d55 authored by Clément Léger's avatar Clément Léger Committed by Greg Kroah-Hartman
Browse files

net: lan966x: check for ptp to be enabled in lan966x_ptp_deinit()



[ Upstream commit b0e380b5 ]

If ptp was not enabled due to missing IRQ for instance,
lan966x_ptp_deinit() will dereference NULL pointers.

Fixes: d0964594 ("net: lan966x: Add support for ptp clocks")
Signed-off-by: default avatarClément Léger <clement.leger@bootlin.com>
Reviewed-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bbc17e88
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment