mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
platform/x86: ISST: Add missing write block check
If writes are blocked, then return error during SST-CP enable command.
Add missing write block check in this code path.
Fixes: 8bed9ff7db ("platform/x86: ISST: Process read/write blocked feature status")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260107060256.1634188-2-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
c4a0690953
commit
0e5aef2795
|
|
@ -612,6 +612,9 @@ static long isst_if_core_power_state(void __user *argp)
|
|||
return -EINVAL;
|
||||
|
||||
if (core_power.get_set) {
|
||||
if (power_domain_info->write_blocked)
|
||||
return -EPERM;
|
||||
|
||||
_write_cp_info("cp_enable", core_power.enable, SST_CP_CONTROL_OFFSET,
|
||||
SST_CP_ENABLE_START, SST_CP_ENABLE_WIDTH, SST_MUL_FACTOR_NONE)
|
||||
_write_cp_info("cp_prio_type", core_power.priority_type, SST_CP_CONTROL_OFFSET,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user