commit | e4245ea898797f606cf2260c9c1970414b96af78 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Mon Jun 20 19:53:33 2016 +0100 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Mon Jun 20 21:20:16 2016 +0200 |
tree | 8b3538d0384afab78c6799f497f304f6bf07d7fb | |
parent | c001da4f7c025a612a594b0ac421bce11fb5bc8b [diff] |
drm: Prevent NULL deref in drm_name_info() If a driver does not have a parent, or never sets the unique name for itself, then we may proceed to chase a NULL dereference through debugfs/.../name. Testcase: igt/vgem_basic/debugfs Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1466448813-23340-1-git-send-email-chris@chris-wilson.co.uk