diff options
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 3029f865cd61..dc9f8c2ab1d5 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1859,7 +1859,11 @@ static int netlink_seq_open(struct inode *inode, struct file *file) | |||
1859 | 1859 | ||
1860 | seq = file->private_data; | 1860 | seq = file->private_data; |
1861 | seq->private = iter; | 1861 | seq->private = iter; |
1862 | iter->net = get_net(PROC_NET(inode)); | 1862 | iter->net = get_proc_net(inode); |
1863 | if (!iter->net) { | ||
1864 | seq_release_private(inode, file); | ||
1865 | return -ENXIO; | ||
1866 | } | ||
1863 | return 0; | 1867 | return 0; |
1864 | } | 1868 | } |
1865 | 1869 | ||