drm/amdgpu: potential NULL dereference in debugfs code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Oct 2016 06:17:30 +0000 (09:17 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Oct 2016 22:25:50 +0000 (18:25 -0400)
commiteeb2fa0c97ba661f8b7fb210a1de10928b67a47b
tree3c194552a9b4ce732788d8486e2fa846bd1adae4
parent9faa6b0277fab4ab91db4d69bc47566fdfbae48b
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c