Re: [PATCH net v2] cxgb4: ptp_clock_register() returns error pointers

2017-07-14 Thread David Miller
From: Ganesh Goudar 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-b

[PATCH net v2] cxgb4: ptp_clock_register() returns error pointers

2017-07-13 Thread Ganesh Goudar
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 Cc: Richard Cochran Signed-off-by: Ganesh Goudar ---