From: Jan Glauber
Date: Mon, 12 Feb 2018 18:20:11 +0100
> Prevent a kernel panic on reboot if ptp_clock is NULL by checking
> the ptp pointer before using it.
>
> Signed-off-by: Jan Glauber
> Fixes: 8c56df372bc1 ("net: add support for Cavium PTP coprocessor")
Applied, thank you.
Prevent a kernel panic on reboot if ptp_clock is NULL by checking
the ptp pointer before using it.
Signed-off-by: Jan Glauber
Fixes: 8c56df372bc1 ("net: add support for Cavium PTP coprocessor")
Cc: Radoslaw Biernacki
Cc: Aleksey Makarov
---
drivers/net/ethernet/cavium/common/cavium_ptp.c | 2 +