commit | 3bb271f3cabc464a94dd9fc24df234f3c18d139b | [log] [tgz] |
---|---|---|
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | Wed Mar 14 14:07:49 2018 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Mar 15 09:55:03 2018 -0500 |
tree | 164ab0fc2c481c0ca263a283ad9e92b82ddd55e6 | |
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>