diff options
Diffstat (limited to 'arch/um/drivers/mconsole_kern.c')
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index ebb265c07e4d..19d579d74d27 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -145,8 +145,8 @@ void mconsole_proc(struct mc_request *req) | |||
145 | } | 145 | } |
146 | up_write(&super->s_umount); | 146 | up_write(&super->s_umount); |
147 | 147 | ||
148 | nd.dentry = super->s_root; | 148 | nd.path.dentry = super->s_root; |
149 | nd.mnt = NULL; | 149 | nd.path.mnt = NULL; |
150 | nd.flags = O_RDONLY + 1; | 150 | nd.flags = O_RDONLY + 1; |
151 | nd.last_type = LAST_ROOT; | 151 | nd.last_type = LAST_ROOT; |
152 | 152 | ||
@@ -159,7 +159,7 @@ void mconsole_proc(struct mc_request *req) | |||
159 | goto out_kill; | 159 | goto out_kill; |
160 | } | 160 | } |
161 | 161 | ||
162 | file = dentry_open(nd.dentry, nd.mnt, O_RDONLY); | 162 | file = dentry_open(nd.path.dentry, nd.path.mnt, O_RDONLY); |
163 | if (IS_ERR(file)) { | 163 | if (IS_ERR(file)) { |
164 | mconsole_reply(req, "Failed to open file", 1, 0); | 164 | mconsole_reply(req, "Failed to open file", 1, 0); |
165 | goto out_kill; | 165 | goto out_kill; |