Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: aee9caa ("net: sched: sch_red: Add qevents "early_drop" and "mark"") Reported-and-tested-by: [email protected] Reported-and-tested-by: [email protected] Cc: Petr Machata <[email protected]> Signed-off-by: Cong Wang <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information