net/sched: cbs: Fix error path of cbs_module_init
mainline inclusion from mainline-v5.2-rc7 commit 45d5cb13 category: bugfix bugzilla: 16960 CVE: NA ------------------------------------- If register_qdisc fails, we should unregister netdevice notifier. Reported-by: NHulk Robot <hulkci@huawei.com> Fixes: e0a7683d ("net/sched: cbs: fix port_rate miscalculation") Signed-off-by: NYueHaibing <yuehaibing@huawei.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net> Signed-off-by: Nguodeqing <geffrey.guo@huawei.com> Reviewed-by: NWenan Mao <maowenan@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录