]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
l2tp: Remove redundant BUG_ON() check in l2tp_pernet
authorXu Wang <vulab@iscas.ac.cn>
Fri, 3 Jan 2020 09:28:16 +0000 (09:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2020 20:26:07 +0000 (12:26 -0800)
commitd2e9d229cfbd73baf33a817a0212233cea7df59a
treed1acf8d2e2890e6efc6c34af76193fc502341bab
parent1f623431100138ffaaae36e122f2727c13de640a
l2tp: Remove redundant BUG_ON() check in l2tp_pernet

Passing NULL to l2tp_pernet causes a crash via BUG_ON.
Dereferencing net in net_generic() also has the same effect.
This patch removes the redundant BUG_ON check on the same parameter.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c