Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1535892

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

From Richard Cochran <richardcochran@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the NULL pointer reference
Date 2016-12-05 09:40 +0100
Message-ID <sKWYx-2e2-9@gated-at.bofh.it> (permalink)
References <sKWYx-2e2-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the  NULL pointer reference Richard Cochran <richardcochran@gmail.com> - 2016-12-05 09:40 +0100

csiph-web