]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: move debug check after netdev unregister
authorFlorian Westphal <fw@strlen.de>
Sat, 14 Mar 2020 07:18:42 +0000 (08:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 07:42:35 +0000 (00:42 -0700)
commitb6faaeed12f843fb911c4fc878af5a114ea90ab5
treea474fa3ee448a16cb37a0b3f5e0b04b71e4c97c4
parent0c0f183488db28b2b0496cd4d80174dac3d370d4
geneve: move debug check after netdev unregister

The debug check must be done after unregister_netdevice_many() call --
the list_del() for this is done inside .ndo_stop.

Fixes: dae3d842664e ("geneve: speedup geneve tunnels dismantle")
Reported-and-tested-by: <syzbot+68a8ed58e3d17c700de5@syzkaller.appspotmail.com>
Cc: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c