Skip to content
Commit 45d5cb13 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

net/sched: cbs: Fix error path of cbs_module_init



If register_qdisc fails, we should unregister
netdevice notifier.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: e0a7683d ("net/sched: cbs: fix port_rate miscalculation")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c492d4c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment