mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
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:

committed by
Anup Patel

parent
b91ab20cd2
commit
1ad1991244
@@ -337,7 +337,7 @@ int sbi_fwft_set(enum sbi_fwft_feature_t feature, unsigned long value,
|
|||||||
return SBI_EINVAL;
|
return SBI_EINVAL;
|
||||||
|
|
||||||
if (conf->flags & SBI_FWFT_SET_FLAG_LOCK)
|
if (conf->flags & SBI_FWFT_SET_FLAG_LOCK)
|
||||||
return SBI_EDENIED;
|
return SBI_EDENIED_LOCKED;
|
||||||
|
|
||||||
ret = conf->feature->set(conf, value);
|
ret = conf->feature->set(conf, value);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Reference in New Issue
Block a user