diff options
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 = { | |||
498 | 498 | ||
499 | static int pn_sock_open(struct inode *inode, struct file *file) | 499 | static int pn_sock_open(struct inode *inode, struct file *file) |
500 | { | 500 | { |
501 | return seq_open(file, &pn_sock_seq_ops); | 501 | return seq_open_net(inode, file, &pn_sock_seq_ops, |
502 | sizeof(struct seq_net_private)); | ||
502 | } | 503 | } |
503 | 504 | ||
504 | const struct file_operations pn_sock_seq_fops = { | 505 | const struct file_operations pn_sock_seq_fops = { |
@@ -506,5 +507,5 @@ const struct file_operations pn_sock_seq_fops = { | |||
506 | .open = pn_sock_open, | 507 | .open = pn_sock_open, |
507 | .read = seq_read, | 508 | .read = seq_read, |
508 | .llseek = seq_lseek, | 509 | .llseek = seq_lseek, |
509 | .release = seq_release, | 510 | .release = seq_release_net, |
510 | }; | 511 | }; |