summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCandice Li <candice.li@amd.com>2026-05-13 13:13:30 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-05-19 18:53:16 +0300
commitd1f9f5839bd785a3a06335a01d53282e80f8e5fa (patch)
tree25787f82d94a6a4587c0410dfe635c46a33a50b4 /include
parent2206e6c76d05e30447330d00c324fa03e35e4f0c (diff)
downloadlinux-d1f9f5839bd785a3a06335a01d53282e80f8e5fa.tar.xz
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')
0 files changed, 0 insertions, 0 deletions