Re: [patch] drm/amdgpu: potential NULL dereference in debugfs code

2016-10-12 Thread Alex Deucher
On Wed, Oct 12, 2016 at 5:20 AM, Christian König wrote: > Am 12.10.2016 um 08:17 schrieb Dan Carpenter: >> >> 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: 4f

Re: [patch] drm/amdgpu: potential NULL dereference in debugfs code

2016-10-12 Thread Christian König
Am 12.10.2016 um 08:17 schrieb Dan Carpenter: 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') Sign

[patch] drm/amdgpu: potential NULL dereference in debugfs code

2016-10-11 Thread Dan Carpenter
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') Signed-off-by: Dan Carpenter diff --git a/drivers/