Re: [PATCH net v2] net: lan966x: check for ptp to be enabled in lan966x_ptp_deinit()
From: Jiri Pirko
Date: Mon Jan 09 2023 - 13:47:06 EST
Mon, Jan 09, 2023 at 04:32:23PM CET, clement.leger@xxxxxxxxxxx wrote:
>If ptp was not enabled due to missing IRQ for instance,
>lan966x_ptp_deinit() will dereference NULL pointers.
>
>Fixes: d096459494a8 ("net: lan966x: Add support for ptp clocks")
>Signed-off-by: Clément Léger <clement.leger@xxxxxxxxxxx>
>Reviewed-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>
Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>