From: Ganesh Goudar <[email protected]>
Date: Thu, 13 Jul 2017 18:36:50 +0530

> Check ptp_clock_register() return not only for NULL but
> also for error pointers, and also nullify adapter->ptp_clock
> if ptp_clock_register() fails.
> 
> Fixes: 9c33e4208bce ("cxgb4: Add PTP Hardware Clock (PHC) support")
> Reported-by: Dan Carpenter <[email protected]>
> Cc: Richard Cochran <[email protected]>
> Signed-off-by: Ganesh Goudar <[email protected]>
> ---
> v2: nullifying adapter->ptp_clock if ptp_clock_register() fails.

Applied.

Reply via email to