* 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@vger.kernel.org, linux-kernel@vger.kernel.org,
cxdx2006@gmail.com
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