[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1249996327-8460-1-git-send-email-remi.denis-courmont@nokia.com>
Date: Tue, 11 Aug 2009 16:12:07 +0300
From: Rémi Denis-Courmont
<remi.denis-courmont@...ia.com>
To: netdev@...r.kernel.org
Subject: [PATCH net-next] Phonet: fix /proc/net/phonet with network namespaces
From: Rémi Denis-Courmont <remi.denis-courmont@...ia.com>
seq_open_net() and seq_release() are needed for seq_file_net().
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@...ia.com>
---
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 aa1617a..5f26c37 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,
};
--
1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists