summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2021-01-16 02:39:14 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-01-15 15:21:49 -0500
commitb479efb0a94a19d0efb406bc8c82d89a280c3256 (patch)
treebaabbaec2d457bc3c00ae097726a13a00ab6cbb1 /mm/page_alloc.c
parent3f5f188963a461c8b2cf542254947c04a35d33ee (diff)
drm/amd/display: fix the system memory page fault because of copy overflow
The buffer is allocated with the size of pointer and copy with the size of data structure. Then trigger the system memory page fault. Use the orignal data structure to get the object size. Fixes: 3a00c04212d1 ("drm/amd/display/dc/core/dc_link: Move some local data from the stack to the heap") Signed-off-by: Huang Rui <ray.huang@amd.com> Cc: Lee Jones <lee.jones@linaro.org> Reviewed-by: Jinzhou.Su <Jinzhou.Su@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions