diff options
author | Eric Biggers <[email protected]> | 2024-07-04 16:09:57 +0200 |
---|---|---|
committer | Mikulas Patocka <[email protected]> | 2024-07-10 13:10:06 +0200 |
commit | 3708c7269593b836b1d684214cd9f5d83e4ed3fd (patch) | |
tree | 5c2012976ffb474d9d778b4033586c529fdaf776 /lib/memory-notifier-error-inject.c | |
parent | 9d45db03acf9cee4f83148c403d105b1a38a0f23 (diff) |
dm-verity: fix dm_is_verity_target() when dm-verity is builtin
When CONFIG_DM_VERITY=y, dm_is_verity_target() returned true for any
builtin dm target, not just dm-verity. Fix this by checking for
verity_target instead of THIS_MODULE (which is NULL for builtin code).
Fixes: b6c1c5745ccc ("dm: Add verity helpers for LoadPin")
Cc: [email protected]
Cc: Matthias Kaehlcke <[email protected]>
Cc: Kees Cook <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions