summaryrefslogtreecommitdiff
path: root/drivers/net/ppp
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-12-05 17:04:49 -0600
committerDavid S. Miller <davem@davemloft.net>2019-12-07 11:52:23 -0800
commit02a896ca84874bbfcedc006303f2951dda89b298 (patch)
treeefd027b6b26a2275d742a203cd0f2662f63abf01 /drivers/net/ppp
parent5532946e339576097d7a0f5facc828e4d53d901b (diff)
downloadlinux-next-02a896ca84874bbfcedc006303f2951dda89b298.tar.gz
pppoe: remove redundant BUG_ON() check in pppoe_pernet
Passing NULL to pppoe_pernet causes a crash via BUG_ON. Dereferencing net in net_generici() also has the same effect. This patch removes the redundant BUG_ON check on the same parameter. Signed-off-by: Aditya Pakki <pakki001@umn.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r--drivers/net/ppp/pppoe.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index a44dd3c8af63..d760a36db28c 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -119,8 +119,6 @@ static inline bool stage_session(__be16 sid)
static inline struct pppoe_net *pppoe_pernet(struct net *net)
{
- BUG_ON(!net);
-
return net_generic(net, pppoe_net_id);
}