dm: verity-loadpin: Drop use of dm_table_get_num_targets()
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 28 Jul 2022 15:54:41 +0000 (08:54 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 29 Jul 2022 04:48:12 +0000 (21:48 -0700)
commit27603a606fda0806d7c08914bc976931aa42020e
tree9eff535a5b8a9f6fa46eb4cd31c176b242eafd82
parentaaf50b1969d7933a51ea421b11432a7fb90974e3
dm: verity-loadpin: Drop use of dm_table_get_num_targets()

Commit 2aec377a2925 ("dm table: remove dm_table_get_num_targets()
wrapper") in linux-dm/for-next removed the function
dm_table_get_num_targets() which is used by verity-loadpin. Access
table->num_targets directly instead of using the defunct wrapper.

Fixes: b6c1c5745ccc ("dm: Add verity helpers for LoadPin")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220728085412.1.I242d21b378410eb6f9897a3160efb56e5608c59d@changeid
drivers/md/dm-verity-loadpin.c