Re: [PATCH][v2] netfilter: check the result of dereferencing base_chain->stats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 26, 2019 at 05:13:56PM +0800, Li RongQing wrote:
> check the result of dereferencing base_chain->stats, instead of
> result of this_cpu_ptr with NULL
> 
> base_chain->stats maybe be changed to NULL when a chain is
> updated and a new NULL counter can be attached
> 
> and we do not need to check returning of this_cpu_ptr since
> base_chain->stats is from percpu allocator if it is non-NULL,
> this_cpu_ptr returns a valid value
> 
> and fix two sparse error by replacing rcu_access_pointer and
> rcu_dereference with READ_ONCE under rcu_read_lock
> 
> Thanks for Eric's help to finish this patch

Applied, thanks!



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux