Skip to content
Commit 5438dd45 authored by Cong Wang's avatar Cong Wang Committed by David S. Miller
Browse files

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: aee9caa0 ("net: sched: sch_red: Add qevents "early_drop" and "mark"")
Reported-and-tested-by: default avatar <syzbot+b33c1cb0a30ebdc8a5f9@syzkaller.appspotmail.com>
Reported-and-tested-by: default avatar <syzbot+e5ea5f8a3ecfd4427a1c@syzkaller.appspotmail.com>
Cc: Petr Machata <petrm@mellanox.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f272285f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment