summaryrefslogtreecommitdiff
BranchCommit messageAuthorAge
follownameLost in the mergeTobias Klauser13 years
masterDynamically allocate inotify read bufferTobias Klauser10 years
pipeRevert "inotail.c: Decrement n_units before calling tail_pipe_from_begin"Tobias Klauser14 years
 
TagDownloadAuthorAge
v0.5commit a9b1b5e00a...Tobias Klauser14 years
v0.4commit 30282557d1...Tobias Klauser14 years
v0.3commit aa67658f45...Tobias Klauser14 years
v0.2commit 5d87c405cc...Tobias Klauser15 years
v0.1commit d5433918e5...Tobias Klauser15 years
href='/cgit.cgi/linux/net-next.git/tree/net/caif/cfcnfg.c?id=8a8ee9aff6c3077dd9c2c7a77478e8ed362b96c6'>net/caif/cfcnfg.c parent5ee4433efe99b9f39f6eff5052a177bbcfe72cea (diff)
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 <ebiederm@xmission.com> Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Tested-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/cfcnfg.c')
-rw-r--r--net/caif/cfcnfg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/caif/cfcnfg.c b/net/caif/cfcnfg.c