diff options
| author | Sudeep Holla <sudeep.holla@kernel.org> | 2026-05-17 22:02:40 +0300 |
|---|---|---|
| committer | Sudeep Holla <sudeep.holla@kernel.org> | 2026-05-20 12:00:09 +0300 |
| commit | f6fe7c3c007df18afd289ff2d98c692fae9ab085 (patch) | |
| tree | 4cfe94746b540c92d170e5c1df23cb6ee2e7fcde /include/linux/debugobjects.h | |
| parent | b79d9b5747d961516c35ef4d5e91efa579fd3e9a (diff) | |
| download | linux-f6fe7c3c007df18afd289ff2d98c692fae9ab085.tar.xz | |
firmware: arm_scmi: Read sensor config as 32-bit value
The SENSOR_CONFIG_GET response contains a 32-bit sensor_config field,
and the xfer is initialized with a 4-byte RX buffer. Reading it with
get_unaligned_le64() can consume bytes past the returned payload.
Use get_unaligned_le32() to match the protocol layout and the allocated
response size.
Fixes: 7b83c5f41088 ("firmware: arm_scmi: Add SCMI v3.0 sensor configuration support")
Link: https://patch.msgid.link/20260517-scmi_fixes-v1-1-d86daec4defd@kernel.org
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
