]> git.baikalelectronics.ru Git - kernel.git/commit
drm: fail gracefully when proc isn't setup.
authorDave Airlie <airlied@gmail.com>
Fri, 6 Jul 2012 17:06:42 +0000 (18:06 +0100)
committerDave Airlie <airlied@gmail.com>
Sun, 15 Jul 2012 19:57:03 +0000 (05:57 +1000)
commitb370ae5ed7c97db8ca52306e09125d907652c420
tree5b9f72eacf9893432cf03699011d8335796003ff
parent8022c5aad9207c93fde0b7bbc27636b2ea553daa
drm: fail gracefully when proc isn't setup.

If drm can't find proc it should fail more gracefully, than just
oopsing, this tests drm_class is NULL, and sets it to NULL in the
fail paths.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_sysfs.c