From: Cong Wang <[email protected]> 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: [email protected] > Fixes: aee9caa03fc3 ("net: sched: sch_red: Add qevents "early_drop" and > "mark"") > Cc: Petr Machata <[email protected]> > Cc: Jamal Hadi Salim <[email protected]> > Cc: Jiri Pirko <[email protected]> > Signed-off-by: Cong Wang <[email protected]> Applied, thank you.
