[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120127.210706.1819458801435039273.davem@davemloft.net>
Date: Fri, 27 Jan 2012 21:07:06 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: ebiederm@...ssion.com
Cc: eric.dumazet@...il.com, xemul@...allels.com,
sjur.brandeland@...ricsson.com, levinsasha928@...il.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
davej@...hat.com, sjurbren@...il.com
Subject: Re: [PATCH 1/2] netns: Fail conspicously if someone uses
net_generic at an inappropriate time.
From: ebiederm@...ssion.com (Eric W. Biederman)
Date: Thu, 26 Jan 2012 16:02:55 -0800
> By definition net_generic should never be called when it can return
> NULL. Fail conspicously with a BUG_ON to make it clear when people mess
> up that a NULL return should never happen.
>
> Recently there was a bug in the CAIF subsystem where it was registered
> with register_pernet_device instead of register_pernet_subsys. It was
> erroneously concluded that net_generic could validly return NULL and
> that net_assign_generic was buggy (when it was just inefficient).
> Hopefully this BUG_ON will prevent people to coming to similar erroneous
> conclusions in the futrue.
>
> Signed-off-by: Eric W. Biederman <ebiederm@...ssion.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists