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

2017-07-11 Thread Richard Cochran
On Tue, Jul 11, 2017 at 07:54:38PM +0530, Ganesh Goudar wrote: > diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c > b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c > index 50517cf..06c0de4 100644 > --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c > +++ b/drivers/net/ethernet/chelsi

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

2017-07-11 Thread Ganesh Goudar
Check ptp_clock_register() return not only for NULL but also for error pointers. Fixes: 9c33e4208bce ("cxgb4: Add PTP Hardware Clock (PHC) support") Reported-by: Dan Carpenter Cc: Richard Cochran Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c | 2 +- 1 file cha