Thread (1 message) 1 message, 1 author, 2016-12-05

Re: [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the NULL pointer reference

From: Richard Cochran <richardcochran@gmail.com>
Date: 2016-12-05 08:32:57
Also in: lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help