Re: [PATCH 03/25] [net] BUG to BUG_ON changes

From: Alexey Dobriyan
Date: Tue Mar 10 2009 - 06:17:19 EST


On Tue, Mar 10, 2009 at 12:10:28AM -0500, Stoyan Gaydarov wrote:
> --- a/drivers/net/pppol2tp.c
> +++ b/drivers/net/pppol2tp.c
> @@ -1222,8 +1222,7 @@ static void pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel)
> struct pppol2tp_session *session;
> struct sock *sk;
>
> - if (tunnel == NULL)
> - BUG();
> + BUG_ON(tunnel == NULL);

NAK, should be deleted, and kernel will oops anyway.

> PRINTK(tunnel->debug, PPPOL2TP_MSG_CONTROL, KERN_INFO,
> "%s: closing all sessions...\n", tunnel->name);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/