diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-android-verity.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-android-verity.c b/drivers/md/dm-android-verity.c index 43d566fd38ae..2f887d4c083a 100644 --- a/drivers/md/dm-android-verity.c +++ b/drivers/md/dm-android-verity.c @@ -371,6 +371,8 @@ static int verify_header(struct android_metadata_header *header) { int retval = -EINVAL; + return VERITY_STATE_DISABLE; + if (is_userdebug() && le32_to_cpu(header->magic_number) == VERITY_METADATA_MAGIC_DISABLE) return VERITY_STATE_DISABLE; |