Commit 02a896ca authored by Aditya Pakki's avatar Aditya Pakki Committed by David S. Miller

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: default avatarAditya Pakki <pakki001@umn.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5532946e
...@@ -119,8 +119,6 @@ static inline bool stage_session(__be16 sid) ...@@ -119,8 +119,6 @@ static inline bool stage_session(__be16 sid)
static inline struct pppoe_net *pppoe_pernet(struct net *net) static inline struct pppoe_net *pppoe_pernet(struct net *net)
{ {
BUG_ON(!net);
return net_generic(net, pppoe_net_id); return net_generic(net, pppoe_net_id);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment