projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KEYS: fix parsing invalid pkey info string
[linux-2.6-microblaze.git]
/
security
/
keys
/
keyctl_pkey.c
diff --git
a/security/keys/keyctl_pkey.c
b/security/keys/keyctl_pkey.c
index
70e65a2
..
8bdea5a
100644
(file)
--- a/
security/keys/keyctl_pkey.c
+++ b/
security/keys/keyctl_pkey.c
@@
-50,6
+50,8
@@
static int keyctl_pkey_params_parse(struct kernel_pkey_params *params)
if (*p == '\0' || *p == ' ' || *p == '\t')
continue;
token = match_token(p, param_keys, args);
+ if (token == Opt_err)
+ return -EINVAL;
if (__test_and_set_bit(token, &token_mask))
return -EINVAL;
q = args[0].from;