Skip to content

Commit 107dfa2

Browse files
committed
encrypted-keys: fix Opt_err/Opt_error = -1
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>
1 parent 278311e commit 107dfa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎security/keys/encrypted-keys/encrypted.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ static int blksize;
6060
static struct crypto_shash *hash_tfm;
6161

6262
enum {
63-
Opt_err = -1, Opt_new, Opt_load, Opt_update
63+
Opt_new, Opt_load, Opt_update, Opt_err
6464
};
6565

6666
enum {
67-
Opt_error = -1, Opt_default, Opt_ecryptfs, Opt_enc32
67+
Opt_default, Opt_ecryptfs, Opt_enc32, Opt_error
6868
};
6969

7070
static const match_table_t key_format_tokens = {

0 commit comments

Comments
 (0)