hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9H4XD
--------------------------------
Change the error return value to be consistent with the error message semantics.
Fixes: 608e83940fe6 ("arm64/mpam: resctrl: add tips when rmid modification failed") Signed-off-by: Zeng Heng zengheng4@huawei.com --- arch/arm64/kernel/mpam/mpam_resctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/mpam/mpam_resctrl.c b/arch/arm64/kernel/mpam/mpam_resctrl.c index c9882b38fb7e..544468c4177a 100644 --- a/arch/arm64/kernel/mpam/mpam_resctrl.c +++ b/arch/arm64/kernel/mpam/mpam_resctrl.c @@ -1988,7 +1988,7 @@ static ssize_t resctrl_group_rmid_write(struct kernfs_open_file *of,
if (rdtgrp->type != RDTCTRL_GROUP || !list_empty(&rdtgrp->mon.crdtgrp_list)) { - ret = -EINVAL; + ret = -EOPNOTSUPP; rdt_last_cmd_puts("unsupported operation\n"); goto unlock; }