luks: Correct condition for calling handle_encrypted()

Use CONFIG_BLK_LUKS instead of CONFIG_LUKS, which does not exist. This
allows the test to pass.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-12-08 05:21:03 -07:00
parent 7bdb0c15ff
commit a23e4407d5

View File

@@ -903,7 +903,7 @@ static int logic_poll(struct udevice *dev)
return log_msg_ret("gos", -ENOENT); return log_msg_ret("gos", -ENOENT);
/* If encrypted, handle pass entry and unlock */ /* If encrypted, handle pass entry and unlock */
if (IS_ENABLED(CONFIG_LUKS) && if (IS_ENABLED(CONFIG_BLK_LUKS) &&
(os->bflow.flags & BOOTFLOWF_ENCRYPTED)) { (os->bflow.flags & BOOTFLOWF_ENCRYPTED)) {
ret = handle_encrypted(dev, os, seq); ret = handle_encrypted(dev, os, seq);
if (ret) if (ret)