diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-08-11 05:12:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 07:13:19 +0200 |
commit | cb7d9e7f9bedee2928fe5ce95e1d5f1f22c1f2d7 (patch) | |
tree | d5b89784003176d40c564e7415e2bf81065888d8 /net/phonet | |
parent | be2net: clear & notify residual events before destroying event queues (diff) | |
download | linux-cb7d9e7f9bedee2928fe5ce95e1d5f1f22c1f2d7.tar.xz linux-cb7d9e7f9bedee2928fe5ce95e1d5f1f22c1f2d7.zip |
Phonet: fix /proc/net/phonet with network namespaces
seq_open_net() and seq_release() are needed for seq_file_net().
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet')
-rw-r--r-- | net/phonet/socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index aa1617a7f265..5f26c3711a1e 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -498,7 +498,8 @@ static const struct seq_operations pn_sock_seq_ops = { static int pn_sock_open(struct inode *inode, struct file *file) { - return seq_open(file, &pn_sock_seq_ops); + return seq_open_net(inode, file, &pn_sock_seq_ops, + sizeof(struct seq_net_private)); } const struct file_operations pn_sock_seq_fops = { @@ -506,5 +507,5 @@ const struct file_operations pn_sock_seq_fops = { .open = pn_sock_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = seq_release_net, }; |