aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/wext.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/wireless/wext.c b/net/wireless/wext.c
index e8b3409d6c8b..85e5f9dd0d8e 100644
--- a/net/wireless/wext.c
+++ b/net/wireless/wext.c
@@ -678,7 +678,11 @@ static int wireless_seq_open(struct inode *inode, struct file *file)
678 res = seq_open(file, &wireless_seq_ops); 678 res = seq_open(file, &wireless_seq_ops);
679 if (!res) { 679 if (!res) {
680 seq = file->private_data; 680 seq = file->private_data;
681 seq->private = get_net(PROC_NET(inode)); 681 seq->private = get_proc_net(inode);
682 if (!seq->private) {
683 seq_release(inode, file);
684 res = -ENXIO;
685 }
682 } 686 }
683 return res; 687 return res;
684} 688}