summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-04-02 10:41:48 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-04-03 10:57:07 -0700
commit6e87001fe19f251e2ae14373bc76554358a13df2 (patch)
treed37a004e8fa3b58dc925f4210e186269e6ad1667 /kernel
parentfb42964e2a76f68a5fb581d382b5d2be2d5bda9b (diff)
accel/amdxdna: Adjust size for copy_to_user()
The amount of data returned to user space should be limited by the buffer size provided by the application. If the buffer is smaller than the data size, return only the portion that fits instead of failing. Fixes: 850d71f6bf4c ("accel/amdxdna: Add query functions") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260402174148.3527757-1-lizhi.hou@amd.com
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions