Cong Wang 5438dd4583 net_sched: fix error path in red_init()
When ->init() fails, ->destroy() is called to clean up.
So it is unnecessary to clean up in red_init(), and it
would cause some refcount underflow.

Fixes: aee9caa03fc3 ("net: sched: sch_red: Add qevents "early_drop" and "mark"")
Reported-and-tested-by: syzbot+b33c1cb0a30ebdc8a5f9@syzkaller.appspotmail.com
Reported-and-tested-by: syzbot+e5ea5f8a3ecfd4427a1c@syzkaller.appspotmail.com
Cc: Petr Machata <petrm@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-28 07:16:46 -07:00
..
2020-08-15 08:34:36 -07:00
2020-08-25 07:50:25 -07:00
2020-08-27 07:55:59 -07:00
2020-06-23 20:27:09 -07:00
2020-08-27 07:55:59 -07:00
2020-08-27 07:55:59 -07:00
2020-08-15 08:26:55 -07:00
2020-07-13 17:20:40 -07:00
2020-08-11 10:20:34 -07:00
2020-08-10 19:07:44 -07:00
2020-08-27 07:55:59 -07:00