ANDROID: fix up broken dm-table.c out-of-tree code.

Changes in 6.0-rc1 broke the out-of-tree dm-table.c changes, so fix
things up to be able to build properly again.

Bug: 147209885
Bug: 160883266
Bug: 160883801
Fixes: fd35c92fc4 ("ANDROID: dm: add support for passing through derive_sw_secret")
Cc: Barani Muthukumaran <bmuthuku@codeaurora.org>
Cc: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1c66f45414083b3cc9fdb4d17dc9f87f2fd34eb0
This commit is contained in:
Greg Kroah-Hartman
2022-08-12 10:06:51 +02:00
parent 00f3e9ab46
commit 07f88d1ace
+1 -1
View File
@@ -1302,7 +1302,7 @@ static int dm_derive_sw_secret(struct blk_crypto_profile *profile,
t = dm_get_live_table(md, &srcu_idx);
if (!t)
return -EOPNOTSUPP;
for (i = 0; i < dm_table_get_num_targets(t); i++) {
for (i = 0; i < t->num_targets; i++) {
ti = dm_table_get_target(t, i);
if (!ti->type->iterate_devices)
continue;