printk(KERN_INFO "VERITY args: version=%d data_device=%s hash_device=%s"
" data_block_size_bits=%d hash_block_size_bits=%d"
" num_data_blocks=%lld hash_start_block=%lld"
- " algorithm=%s digest=%s salt=%s\n",
+ " algorithm=%s digest=%s salt=%s error_behavior=%s\n",
args->version,
args->data_device,
args->hash_device,
args->hash_start_block,
args->algorithm,
args->digest,
- args->salt);
+ args->salt,
+ args->error_behavior);
}
/*
int i;
sector_t hash_position;
+ args.error_behavior = error_behavior;
if (argc == DM_VERITY_NUM_POSITIONAL_ARGS)
ti->error = positional_args(argc, argv, &args);
else
}
/* chromeos allows setting error_behavior from both the module
- * parameters and the device args. However, chromeos only uses
- * the module parametres
+ * parameters and the device args.
*/
- v->error_behavior = verity_parse_error_behavior(error_behavior);
+ v->error_behavior = verity_parse_error_behavior(args.error_behavior);
if (v->error_behavior == -1) {
ti->error = "Bad error_behavior supplied";
r = -EINVAL;