diff options
author | Huisong Li | 2022-11-12 10:05:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2022-12-31 13:31:57 +0100 |
commit | f0d5624fbe37cd7c88e7917fd358f26c8db83931 (patch) | |
tree | 826dba53cd791ba4e82de788bfa4bcf6d6c683fc /drivers/acpi | |
parent | 290dd73b943c95c006df973257076ff163adf4d0 (diff) |
mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure
[ Upstream commit 6d7d3c287410c0ad499e478e2338dc3d7e3392b1 ]
Currently, 'pcc_chan_count' is remains set to a non-zero value if PCC
subspaces are parsed successfully but something else fail later during
the initial PCC probing phase. This will result in pcc_mbox_request_channel
trying to access the resources that are not initialised or allocated and
may end up in a system crash.
Reset pcc_chan_count to 0 when the PCC probe fails in order to prevent
the possible issue as described above.
Fixes: ce028702ddbc ("mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe")
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions