From: Davide Caratti <dcara...@redhat.com> Date: Fri, 14 Sep 2018 12:03:18 +0200
> Matteo reported the following splat, testing the datapath of TC 'sample': ... > tcf_sample_act() tried to update its per-cpu stats, but tcf_sample_init() > forgot to allocate them, because tcf_idr_create() was called with a wrong > value of 'cpustats'. Setting it to true proved to fix the reported crash. > > Reported-by: Matteo Croce <mcr...@redhat.com> > Fixes: 65a206c01e8e ("net/sched: Change act_api and act_xxx modules to use > IDR") > Fixes: 5c5670fae430 ("net/sched: Introduce sample tc action") > Tested-by: Matteo Croce <mcr...@redhat.com> > Signed-off-by: Davide Caratti <dcara...@redhat.com> Applied and queued up for -stable, thanks.