Commit 888e32d7 authored by Chen Tao's avatar Chen Tao Committed by Alex Deucher
Browse files

drm/amdgpu/debugfs: fix memory leak when amdgpu_virt_enable_access_debugfs failed

Fix memory leak in amdgpu_debugfs_gpr_read not freeing data when
amdgpu_virt_enable_access_debugfs failed.

Fixes: 95a2f917

 ("drm/amdgpu: restrict debugfs register access under SR-IOV")
Signed-off-by: default avatarChen Tao <chentao107@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3e4aeff3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment