diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-03-14 14:07:49 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-15 09:55:03 -0500 |
commit | 3bb271f3cabc464a94dd9fc24df234f3c18d139b (patch) | |
tree | 164ab0fc2c481c0ca263a283ad9e92b82ddd55e6 /drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | |
parent | 2f51d6e8e485b5efd5983c2454c54815eec02a46 (diff) |
drm/amd/powerplay: Fix KASAN user after free on driver unload.
Reusing local handle to initialize BO without resetting it to
NULL is wrong since it causes amdgpu_bo_create_reserved to skip
new BO creation and just reuse the given pointer for pinning.
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c')
0 files changed, 0 insertions, 0 deletions