commit | eeb2fa0c97ba661f8b7fb210a1de10928b67a47b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Oct 12 09:17:30 2016 +0300 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Oct 13 18:25:50 2016 -0400 |
tree | 3c194552a9b4ce732788d8486e2fa846bd1adae4 | |
parent | 9faa6b0277fab4ab91db4d69bc47566fdfbae48b [diff] |
drm/amdgpu: potential NULL dereference in debugfs code debugfs_create_file() returns NULL on error, it only returns error pointers if debugfs isn't enabled in the config and we checked for that earlier so it can't happen. Fixes: 4f4824b55650 ('drm/amd/amdgpu: Convert ring debugfs entries to binary') Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>