drm: drm_debugfs, check kmalloc retval
commitd25e3a6faa82eeaa6e5487c2d2e27cfd938ed108
authorJiri Slaby <jirislaby@gmail.com>
Mon, 13 Jul 2009 21:20:20 +0000 (13 23:20 +0200)
committerDave Airlie <airlied@linux.ie>
Wed, 15 Jul 2009 05:55:37 +0000 (15 15:55 +1000)
tree76daab3e4ac8b34f205429cec03317121fa37299
parent069a9dce384e211784ce6fdfaf1f13921327480d
drm: drm_debugfs, check kmalloc retval

Check kmalloc return value in drm_debugfs_create_files and bail out
appropriately if the pointer is NULL.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_debugfs.c