commit | d2e9d229cfbd73baf33a817a0212233cea7df59a | [log] [tgz] |
---|---|---|
author | Xu Wang <vulab@iscas.ac.cn> | Fri Jan 03 09:28:16 2020 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Jan 03 12:26:07 2020 -0800 |
tree | d1acf8d2e2890e6efc6c34af76193fc502341bab | |
parent | 1f623431100138ffaaae36e122f2727c13de640a [diff] |
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>