Commit c6103c72 authored by Zeng Heng's avatar Zeng Heng Committed by openeuler-sync-bot
Browse files

arm64/mpam: return EOPNOTSUPP when changing rmid of monitor group or resource group with monitor

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: 608e8394 ("arm64/mpam: resctrl: add tips when rmid modification failed")
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
(cherry picked from commit f9cfb11f)
parent 0d79451b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1948,7 +1948,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;
	}