Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb7d9e7f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by David S. Miller
Browse files

Phonet: fix /proc/net/phonet with network namespaces



seq_open_net() and seq_release() are needed for seq_file_net().

Signed-off-by: default avatarRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 859b1e4e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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,
};