linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the NULL pointer reference
       [not found] <PS1PR01MB0844B3E001ABF0DF39D1B11BDC830@PS1PR01MB0844.apcprd01.prod.exchangelabs.com>
@ 2016-12-05  8:32 ` Richard Cochran
  0 siblings, 0 replies; only message in thread
From: Richard Cochran @ 2016-12-05  8:32 UTC (permalink / raw)
  To: Deng Feng; +Cc: netdev, linux-kernel, cxdx2006

On Mon, Dec 05, 2016 at 08:02:02AM +0000, Deng Feng wrote:
> When we call one function which contained pointers as input parameters,
> we must check the pointers are NULL or not before we make use of them,
> which avoid the NULL pointer reference .

NAK.

These functions belong to an internal kernel API, and the callers
always provide non-NULL arguments.  This isn't some user space
library.

Thanks,
Richard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-05  8:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <PS1PR01MB0844B3E001ABF0DF39D1B11BDC830@PS1PR01MB0844.apcprd01.prod.exchangelabs.com>
2016-12-05  8:32 ` [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the NULL pointer reference Richard Cochran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).