Skip to content

Commit 8c22816

Browse files
author
Mike Snitzer
committed
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 160f99d -- it is far too easy to miss that additional a new argument(s) require bumping DM_VERITY_OPTS_MAX accordingly. Fixes: 5721d4e ("dm verity: Add optional "try_verify_in_tasklet" feature") Signed-off-by: Mike Snitzer <snitzer@kernel.org>
1 parent b33b6fd commit 8c22816

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/md/dm-verity-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define DM_VERITY_OPT_AT_MOST_ONCE "check_at_most_once"
3838
#define DM_VERITY_OPT_TASKLET_VERIFY "try_verify_in_tasklet"
3939

40-
#define DM_VERITY_OPTS_MAX (3 + DM_VERITY_OPTS_FEC + \
40+
#define DM_VERITY_OPTS_MAX (4 + DM_VERITY_OPTS_FEC + \
4141
DM_VERITY_ROOT_HASH_VERIFICATION_OPTS)
4242

4343
static unsigned dm_verity_prefetch_cluster = DM_VERITY_DEFAULT_PREFETCH_SIZE;

0 commit comments

Comments
 (0)