]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sch_generic: fix the missing new qdisc assignment bug
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 3 Nov 2020 03:25:38 +0000 (11:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:18:53 +0000 (19:18 +0100)
commit81504d1952d712c8bb9c3966896efee8a37ea966
tree1bc22140bf62b728adaabc0ec0df7893613aae15
parent2e021b7197fb911f934efcc45f019e5f7717e8db
net: sch_generic: fix the missing new qdisc assignment bug

When commit 2fb541c862c9 ("net: sch_generic: aviod concurrent reset and
enqueue op for lockless qdisc") is backported to stable kernel, one
assignment is missing, which causes two problems reported by Joakim and
Vishwanath, see [1] and [2].

So add the assignment back to fix it.

1. https://www.spinics.net/lists/netdev/msg693916.html
2. https://www.spinics.net/lists/netdev/msg695131.html

Fixes: 749cc0b0c7f3 ("net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Tested-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_generic.c