diff options
author | Clément Léger <clement.leger@bootlin.com> | 2023-01-09 18:32:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-11 11:31:36 +0300 |
commit | b0e380b5d4275299adf43e249f18309331b6f54f (patch) | |
tree | 3fe2981292bf5ddac6fdc72c4305097d1515d3a4 /net/ipv6 | |
parent | 0aa7d35f5d00f83db2d512bf9d17e6498a33be47 (diff) | |
download | linux-b0e380b5d4275299adf43e249f18309331b6f54f.tar.xz |
net: lan966x: check for ptp to be enabled in lan966x_ptp_deinit()
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@bootlin.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions