|author||Eric W. Biederman <email@example.com>||2012-01-26 14:04:53 +0000|
|committer||David S. Miller <firstname.lastname@example.org>||2012-01-27 21:06:03 -0500|
net caif: Register properly as a pernet subsystem.
caif is a subsystem and as such it needs to register with register_pernet_subsys instead of register_pernet_device. Among other problems using register_pernet_device was resulting in net_generic being called before the caif_net structure was allocated. Which has been causing net_generic to fail with either BUG_ON's or by return NULL pointers. A more ugly problem that could be caused is packets in flight why the subsystem is shutting down. To remove confusion also remove the cruft cause by inappropriately trying to fix this bug. With the aid of the previous patch I have tested this patch and confirmed that using register_pernet_subsys makes the failure go away as it should. Signed-off-by: Eric W. Biederman <email@example.com> Acked-by: Sjur Brændeland <firstname.lastname@example.org> Tested-by: Sasha Levin <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions