Re: [PATCH] net: cavium: fix NULL pointer dereference in cavium_ptp_put

2018-02-12 Thread David Miller
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.

[PATCH] net: cavium: fix NULL pointer dereference in cavium_ptp_put

2018-02-12 Thread Jan Glauber
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 +