lib: sbi: fwft: Return SBI_ERR_DENIED_LOCKED when setting a locked feature

Latest modifications to the spec mandates that a set on a lock feature
returns SBI_ERR_DENIED_LOCKED.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Clément Léger
2025-01-24 17:51:57 +01:00
committed by Anup Patel
parent b91ab20cd2
commit 1ad1991244

View File

@@ -337,7 +337,7 @@ int sbi_fwft_set(enum sbi_fwft_feature_t feature, unsigned long value,
return SBI_EINVAL;
if (conf->flags & SBI_FWFT_SET_FLAG_LOCK)
return SBI_EDENIED;
return SBI_EDENIED_LOCKED;
ret = conf->feature->set(conf, value);
if (ret)