diff options
author | Mike Snitzer <snitzer@kernel.org> | 2022-08-10 00:33:12 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2022-08-10 02:12:14 +0300 |
commit | 8c22816dbc8733ea761c3b74ec62d9463e242c56 (patch) | |
tree | 11a7d950e5c17bd6250ac20a5d497bda48cc9f9c /drivers/md | |
parent | b33b6fdca3f0380c101e2adae5644777d6530fe5 (diff) | |
download | linux-8c22816dbc8733ea761c3b74ec62d9463e242c56.tar.xz |
dm verity: fix DM_VERITY_OPTS_MAX value yet again
Must account for the possibility that "try_verify_in_tasklet" is used.
This is the same issue that was fixed with commit 160f99db94322 -- it
is far too easy to miss that additional a new argument(s) require
bumping DM_VERITY_OPTS_MAX accordingly.
Fixes: 5721d4e5a9cd ("dm verity: Add optional "try_verify_in_tasklet" feature")
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-verity-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c index 981821f18a18..5b9062e5167b 100644 --- a/drivers/md/dm-verity-target.c +++ b/drivers/md/dm-verity-target.c @@ -37,7 +37,7 @@ #define DM_VERITY_OPT_AT_MOST_ONCE "check_at_most_once" #define DM_VERITY_OPT_TASKLET_VERIFY "try_verify_in_tasklet" -#define DM_VERITY_OPTS_MAX (3 + DM_VERITY_OPTS_FEC + \ +#define DM_VERITY_OPTS_MAX (4 + DM_VERITY_OPTS_FEC + \ DM_VERITY_ROOT_HASH_VERIFICATION_OPTS) static unsigned dm_verity_prefetch_cluster = DM_VERITY_DEFAULT_PREFETCH_SIZE; |