projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
278311e
)
encrypted-keys: fix Opt_err/Opt_error = -1
author
Mimi Zohar
<zohar@linux.ibm.com>
Tue, 18 Dec 2018 12:57:41 +0000
(07:57 -0500)
committer
Mimi Zohar
<zohar@linux.ibm.com>
Mon, 4 Feb 2019 22:36:01 +0000
(17:36 -0500)
Properly start the enumeration associated with match_table_t at zero,
making Opt_err/Opt_error the last enumeration value.
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/keys/encrypted-keys/encrypted.c
patch
|
blob
|
history
diff --git
a/security/keys/encrypted-keys/encrypted.c
b/security/keys/encrypted-keys/encrypted.c
index 389a298274d3f47f96ee35e21e01050bffe3075f..347108f660a18657edefd2a3a378e738d9537917 100644
(file)
--- a/
security/keys/encrypted-keys/encrypted.c
+++ b/
security/keys/encrypted-keys/encrypted.c
@@
-60,11
+60,11
@@
static int blksize;
static struct crypto_shash *hash_tfm;
enum {
- Opt_
err = -1, Opt_new, Opt_load, Opt_update
+ Opt_
new, Opt_load, Opt_update, Opt_err
};
enum {
- Opt_
error = -1, Opt_default, Opt_ecryptfs, Opt_enc32
+ Opt_
default, Opt_ecryptfs, Opt_enc32, Opt_error
};
static const match_table_t key_format_tokens = {