summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Léger <[email protected]>2025-01-24 17:51:57 +0100
committerAnup Patel <[email protected]>2025-02-19 22:13:21 +0530
commit1ad199124479b9944d5dddc2119e6da9f088f7a7 (patch)
treee398f81e2579fbcc3bbce26cb76d6234dc7c1499
parentb91ab20cd2419892107e5a6a3d7df6088540d5df (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--lib/sbi/sbi_fwft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_fwft.c b/lib/sbi/sbi_fwft.c
index 0cb165b4..c46006d4 100644
--- a/lib/sbi/sbi_fwft.c
+++ b/lib/sbi/sbi_fwft.c
@@ -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)