[lvc-project] [PATCH] netfilter: ebtables: remove unnecessary NULL check

Florian Westphal fw at strlen.de
Tue Jun 20 19:38:06 MSK 2023


Igor Artemiev <Igor.A.Artemiev at mcst.ru> wrote:
> In ebt_do_table() 'private->chainstack' cannot be NULL
> and the 'cs' pointer is dereferenced below, so it does not make
> sense to compare 'private->chainstack' with NULL. 

?  Why do you think that?

> +	cs = private->chainstack[smp_processor_id()];

Looks like NULL deref to me.  Did you test this?



More information about the lvc-project mailing list