projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c89652
)
vlan: assign PDE->data before gluing PDE into /proc tree
author
Denis V. Lunev
<
[email protected]
>
Fri, 2 May 2008 11:09:11 +0000
(
04:09
-0700)
committer
David S. Miller
<
[email protected]
>
Fri, 2 May 2008 11:09:11 +0000
(
04:09
-0700)
Simply replace proc_create and further data assigned with proc_create_data.
Signed-off-by: Denis V. Lunev <
[email protected]
>
Acked-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/8021q/vlanproc.c
patch
|
blob
|
history
diff --git
a/net/8021q/vlanproc.c
b/net/8021q/vlanproc.c
index daad0064e2c2457fdd7103fe909cdce2458f9056..08b54b593d565df95a7b64629b793371df8c5d4d 100644
(file)
--- a/
net/8021q/vlanproc.c
+++ b/
net/8021q/vlanproc.c
@@
-176,12
+176,11
@@
int vlan_proc_add_dev(struct net_device *vlandev)
struct vlan_dev_info *dev_info = vlan_dev_info(vlandev);
struct vlan_net *vn = net_generic(dev_net(vlandev), vlan_net_id);
- dev_info->dent = proc_create(vlandev->name, S_IFREG|S_IRUSR|S_IWUSR,
- vn->proc_vlan_dir, &vlandev_fops);
+ dev_info->dent =
+ proc_create_data(vlandev->name, S_IFREG|S_IRUSR|S_IWUSR,
+ vn->proc_vlan_dir, &vlandev_fops, vlandev);
if (!dev_info->dent)
return -ENOBUFS;
-
- dev_info->dent->data = vlandev;
return 0;
}