Re: [PATCH] ppp: Remove redundant BUG_ON() check in ppp_pernet

From: David Miller
Date: Fri Dec 27 2019 - 19:31:19 EST


From: Xu Wang <vulab@xxxxxxxxxxx>
Date: Tue, 24 Dec 2019 09:37:04 +0000

> Passing NULL to ppp_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: Xu Wang <vulab@xxxxxxxxxxx>

Applied, thanks.