diff options
author | Clément Léger <clement.leger@bootlin.com> | 2023-01-09 16:32:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-11 08:31:36 +0000 |
commit | b0e380b5d4275299adf43e249f18309331b6f54f (patch) | |
tree | 3fe2981292bf5ddac6fdc72c4305097d1515d3a4 /tools/testing/selftests/net/af_unix/test_unix_oob.c | |
parent | 0aa7d35f5d00f83db2d512bf9d17e6498a33be47 (diff) |
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 'tools/testing/selftests/net/af_unix/test_unix_oob.c')
0 files changed, 0 insertions, 0 deletions