Skip to content

Commit

Permalink
fix up for "dm: Add verity helpers for LoadPin"
Browse files Browse the repository at this point in the history
interacting with

  2aec377 ("dm table: remove dm_table_get_num_targets() wrapper")
  564b5c5 ("dm table: audit all dm_table_get_target() callers")

from the device-mapper tree.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Stephen Rothwell committed Jul 28, 2022
1 parent 40ef37d commit 59c7190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/dm-verity-loadpin.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <linux/dm-verity-loadpin.h>

#include "dm.h"
#include "dm-core.h"
#include "dm-verity.h"

#define DM_MSG_PREFIX "verity-loadpin"
Expand Down Expand Up @@ -58,7 +59,7 @@ bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev)

table = dm_get_live_table(md, &srcu_idx);

if (dm_table_get_num_targets(table) != 1)
if (table->num_targets != 1)
goto out;

ti = dm_table_get_target(table, 0);
Expand Down

0 comments on commit 59c7190

Please sign in to comment.