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


Groups > linux.kernel > #1535892 > unrolled thread

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

Started byRichard Cochran <richardcochran@gmail.com>
First post2016-12-05 09:40 +0100
Last post2016-12-05 09:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

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

FromRichard Cochran <richardcochran@gmail.com>
Date2016-12-05 09:40 +0100
SubjectRe: [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the NULL pointer reference
Message-ID<sKWYx-2e2-9@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web