diff options
Diffstat (limited to 'arch/um/drivers/mconsole_kern.c')
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index 3b3c36601a7b..de317d0c3294 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -140,7 +140,7 @@ void mconsole_proc(struct mc_request *req) | |||
140 | goto out; | 140 | goto out; |
141 | } | 141 | } |
142 | 142 | ||
143 | err = may_open(&nd.path, MAY_READ, FMODE_READ); | 143 | err = may_open(&nd.path, MAY_READ, O_RDONLY); |
144 | if (result) { | 144 | if (result) { |
145 | mconsole_reply(req, "Failed to open file", 1, 0); | 145 | mconsole_reply(req, "Failed to open file", 1, 0); |
146 | path_put(&nd.path); | 146 | path_put(&nd.path); |