]> git.baikalelectronics.ru Git - kernel.git/commit
pppoe: remove redundant BUG_ON() check in pppoe_pernet
authorAditya Pakki <pakki001@umn.edu>
Thu, 5 Dec 2019 23:04:49 +0000 (17:04 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Dec 2019 19:52:23 +0000 (11:52 -0800)
commit02a896ca84874bbfcedc006303f2951dda89b298
treeefd027b6b26a2275d742a203cd0f2662f63abf01
parent5532946e339576097d7a0f5facc828e4d53d901b
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>
drivers/net/ppp/pppoe.c