Commit 46ecf0b9 authored by Wang Chen's avatar Wang Chen Committed by David S. Miller
Browse files

[NEIGHBOUR]: Use proc_create() to setup ->proc_fops first

Use proc_create() to make sure that ->proc_fops be setup before gluing
PDE to main tree.
Signed-off-by: default avatarWang Chen <>
Signed-off-by: default avatarDavid S. Miller <>
parent 7e021809
......@@ -1389,10 +1389,10 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl)
panic("cannot create neighbour cache statistics");
tbl->pde = create_proc_entry(tbl->id, 0, init_net.proc_net_stat);
tbl->pde = proc_create(tbl->id, 0, init_net.proc_net_stat,
if (!tbl->pde)
panic("cannot create neighbour proc dir entry");
tbl->pde->proc_fops = &neigh_stat_seq_fops;
tbl->pde->data = tbl;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment