summaryrefslogtreecommitdiffstats
path: root/net/wanrouter/wanproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wanrouter/wanproc.c')
-rw-r--r--net/wanrouter/wanproc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wanrouter/wanproc.c b/net/wanrouter/wanproc.c
index 937c50076..088487077 100644
--- a/net/wanrouter/wanproc.c
+++ b/net/wanrouter/wanproc.c
@@ -56,7 +56,7 @@ typedef struct wan_stat_entry
/****** Function Prototypes *************************************************/
/* Proc filesystem interface */
-static int router_proc_perms (struct inode*, int);
+static int router_proc_perms(struct inode *, int);
static ssize_t router_proc_read(struct file* file, char* buf, size_t count, loff_t *ppos);
/* Methods for preparing data for reading proc entries */
@@ -118,6 +118,7 @@ static struct inode_operations router_inode =
NULL, /* rmdir */
NULL, /* mknod */
NULL, /* rename */
+ NULL, /* follow link */
NULL, /* readlink */
NULL, /* readpage */
NULL, /* writepage */
@@ -157,6 +158,7 @@ static struct inode_operations wandev_inode =
NULL, /* mknod */
NULL, /* rename */
NULL, /* readlink */
+ NULL, /* follow_link */
NULL, /* readpage */
NULL, /* writepage */
NULL, /* bmap */
@@ -339,7 +341,7 @@ static int router_proc_perms (struct inode* inode, int op)
static ssize_t router_proc_read(struct file* file, char* buf, size_t count,
loff_t *ppos)
{
- struct inode *inode;
+ struct inode *inode = file->f_dentry->d_inode;
struct proc_dir_entry* dent;
char* page;
int pos, offs, len;