diff options
author | Nicolai Stange <[email protected]> | 2016-12-05 21:30:22 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2016-12-06 10:03:28 +0100 |
commit | 58309befa82d81f6e9dc36a92d2a339ef2144535 (patch) | |
tree | 26ce677968f1ba7992ff276e2d18199bafff5fdd /lib/test-string_helpers.c | |
parent | 8f5040e421ca4bbd8cd5216dec509da188eb74bc (diff) |
drm/amdgpu: don't add files at control minor debugfs directory
Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a
struct drm_device's ->control member is always NULL.
In the case of CONFIG_DEBUG_FS=y, amdgpu_debugfs_add_files() accesses
->control->debugfs_root though. This results in a NULL pointer
dereference.
Fix this by omitting the drm_debugfs_create_files() call for the
control minor debugfs directory which is now non-existent anyway.
Fixes: 8a357d10043c ("drm: Nerf DRM_CONTROL nodes")
Signed-off-by: Nicolai Stange <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98915
Reviewed-by: Alex Deucher <[email protected]>
Tested-by: Mike Lothian <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions