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


Groups > linux.kernel > #1519691

question about xt_find_table_lock

From Julia Lawall <julia.lawall@lip6.fr>
Newsgroups linux.kernel
Subject question about xt_find_table_lock
Date 2016-11-11 12:00 +0100
Message-ID <sChIS-3fv-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The function xt_find_table_lock defined in net/netfilter/x_tables.c is
preceeded by a comment that says that it returns ERR_PTR() on error.  But
looking at the definition, I only see occurrences of return NULL and
returns of pointers that have previously been dereferenced.  Is it the
code or the documentation that is incorrect?  The call sites seem to be
using IS_ERR_OR_NULL.  Is there a plan to return ERR_PTR values in the
future?

julia

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

question about xt_find_table_lock Julia Lawall <julia.lawall@lip6.fr> - 2016-11-11 12:00 +0100
  Re: question about xt_find_table_lock Florian Westphal <fw@strlen.de> - 2016-11-11 12:30 +0100
    Re: question about xt_find_table_lock Julia Lawall <julia.lawall@lip6.fr> - 2016-11-11 13:00 +0100

csiph-web