diff options
| author | Candice Li <candice.li@amd.com> | 2026-05-13 18:13:30 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-05-19 11:53:16 -0400 |
| commit | d1f9f5839bd785a3a06335a01d53282e80f8e5fa (patch) | |
| tree | 25787f82d94a6a4587c0410dfe635c46a33a50b4 /include/linux | |
| parent | 2206e6c76d05e30447330d00c324fa03e35e4f0c (diff) | |
drm/amdgpu: validate and share PSP fw_pri_buf copies via psp_copy_fw
Change psp_copy_fw from void to int: return -ENODEV when drm_dev_enter
fails, and -EINVAL when the image size is zero or larger than the
1 MiB PSP private buffer.
Replace open-coded memset/memcpy into fw_pri_buf with psp_copy_fw.
Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
