aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
diff options
context:
space:
mode:
authorLiang He <[email protected]>2022-11-22 04:28:49 +0000
committerAlex Deucher <[email protected]>2022-11-29 16:03:37 +0000
commitdfd0287bd3920e132a8dae2a0ec3d92eaff5f2dd (patch)
treeb18d31a270fb7e68080a362680d1402c94a46575 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
parentdrm/amdgpu: enable PSP IP v13.0.11 support (diff)
downloadkernel-dfd0287bd3920e132a8dae2a0ec3d92eaff5f2dd.tar.gz
kernel-dfd0287bd3920e132a8dae2a0ec3d92eaff5f2dd.zip
drm/amdgpu: Fix potential double free and null pointer dereference
In amdgpu_get_xgmi_hive(), we should not call kfree() after kobject_put() as the PUT will call kfree(). In amdgpu_device_ip_init(), we need to check the returned *hive* which can be NULL before we dereference it. Signed-off-by: Liang He <[email protected]> Reviewed-by: Luben Tuikov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
0 files changed, 0 insertions, 0 deletions