diff options
| author | Peng Fan <[email protected]> | 2025-01-23 06:34:41 +0000 |
|---|---|---|
| committer | Sudeep Holla <[email protected]> | 2025-02-13 14:27:37 +0000 |
| commit | ab027c488fc4a1fff0a5b712d4bdb2d2d324e8f8 (patch) | |
| tree | fa547e93d452a4e2de398784b94f6640303a83da /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-ab027c488fc4a1fff0a5b712d4bdb2d2d324e8f8.tar.gz kernel-ab027c488fc4a1fff0a5b712d4bdb2d2d324e8f8.zip | |
firmware: arm_scmi: imx: Correct tx size of scmi_imx_misc_ctrl_set
'struct scmi_imx_misc_ctrl_set_in' has a zero length array in the end,
The sizeof will not count 'value[]', and hence Tx size will be smaller
than actual size for Tx,and SCMI firmware will flag this as protocol
error.
Fix this by enlarge the Tx size with 'num * sizeof(__le32)' to count in
the size of data.
Fixes: 61c9f03e22fc ("firmware: arm_scmi: Add initial support for i.MX MISC protocol")
Reviewed-by: Jacky Bai <[email protected]>
Tested-by: Shengjiu Wang <[email protected]>
Acked-by: Jason Liu <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Message-Id: <[email protected]>
(sudeep.holla: Commit rewording and replace hardcoded sizeof(__le32) value)
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
