[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170714.081903.1808205304295203754.davem@davemloft.net>
Date: Fri, 14 Jul 2017 08:19:03 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ganeshgr@...lsio.com
Cc: netdev@...r.kernel.org, atul.gupta@...lsio.com,
nirranjan@...lsio.com, indranil@...lsio.com,
dan.carpenter@...cle.com, richardcochran@...il.com
Subject: Re: [PATCH net v2] cxgb4: ptp_clock_register() returns error
pointers
From: Ganesh Goudar <ganeshgr@...lsio.com>
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 <dan.carpenter@...cle.com>
> Cc: Richard Cochran <richardcochran@...il.com>
> Signed-off-by: Ganesh Goudar <ganeshgr@...lsio.com>
> ---
> v2: nullifying adapter->ptp_clock if ptp_clock_register() fails.
Applied.
Powered by blists - more mailing lists