]> git.baikalelectronics.ru Git - kernel.git/commit
net: assign PDE->data before gluing PDE into /proc tree
authorDenis V. Lunev <den@openvz.org>
Fri, 2 May 2008 09:46:22 +0000 (02:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 09:46:22 +0000 (02:46 -0700)
commitac0228eb07ceb28d1c9a7931909061fbc9ea1eff
tree7b61603bf422064b69586853093af194009bd231
parent6f371725d8f39f427d691315ab48d0a417375aef
net: assign PDE->data before gluing PDE into /proc tree

Simply replace proc_create and further data assigned with proc_create_data.
Additionally, there is no need to assign NULL to PDE->data after creation,
/proc generic has already done this for us.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c
net/core/pktgen.c