From: Cong Wang <xiyou.wangc...@gmail.com> Date: Sat, 25 Jul 2020 13:17:07 -0700
> When red_init() fails, red_destroy() is called to clean up. > If the timer is not initialized yet, del_timer_sync() will > complain. So we have to move timer_setup() before any failure. > > Reported-and-tested-by: syzbot+6e95a4fabf88dc217...@syzkaller.appspotmail.com > Fixes: aee9caa03fc3 ("net: sched: sch_red: Add qevents "early_drop" and > "mark"") > Cc: Petr Machata <pe...@mellanox.com> > Cc: Jamal Hadi Salim <j...@mojatatu.com> > Cc: Jiri Pirko <j...@resnulli.us> > Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Applied, thank you.