aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 80bed69fe5b7..09c93d7989f1 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2156,7 +2156,7 @@ drm_add_fake_info_node(struct drm_minor *minor,
2156{ 2156{
2157 struct drm_info_node *node; 2157 struct drm_info_node *node;
2158 2158
2159 node = kmalloc(sizeof(struct drm_info_node), GFP_KERNEL); 2159 node = kmalloc(sizeof(*node), GFP_KERNEL);
2160 if (node == NULL) { 2160 if (node == NULL) {
2161 debugfs_remove(ent); 2161 debugfs_remove(ent);
2162 return -ENOMEM; 2162 return -ENOMEM;