Re: question about xt_find_table_lock

2016-11-11 Thread Julia Lawall
On Fri, 11 Nov 2016, Florian Westphal wrote: > Julia Lawall wrote: > > 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 >

Re: question about xt_find_table_lock

2016-11-11 Thread Florian Westphal
Julia Lawall wrote: > 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 dereferenc

question about xt_find_table_lock

2016-11-11 Thread Julia Lawall
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 do