1
0
Files
linux/include/net
Eric W. Biederman 5ee4433efe netns: Fail conspicously if someone uses net_generic at an inappropriate time.
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@xmission.com>
Tested-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-27 21:06:02 -05:00
..
2011-12-28 15:06:58 -05:00
2011-07-26 16:49:47 -07:00
2011-05-05 11:10:14 -07:00
2012-01-17 10:31:12 -05:00
2011-12-03 09:35:05 -08:00
2011-07-26 16:49:47 -07:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2011-05-17 14:16:58 -04:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-11-22 16:43:32 -05:00