aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_buffer.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2014-10-03 14:24:46 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-10-03 14:24:46 -0400
commit447a8b858e4bda41c394b1bc7fdbc9dc0bdf44f6 (patch)
tree676e741f2552c9cb301e1e49c557b92bf8940f55 /drivers/gpu/drm/drm_buffer.c
parent3049683eafdbbbd7350b0e5ca02a2d8c026a3362 (diff)
parent042e1c79166b9250edd8262bea84e1703f27ad2e (diff)
Merge branch 'next' into for-linus
Prepare first round of input updates for 3.18.
Diffstat (limited to 'drivers/gpu/drm/drm_buffer.c')
-rw-r--r--drivers/gpu/drm/drm_buffer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_buffer.c b/drivers/gpu/drm/drm_buffer.c
index 0406110f83ed..86a4a4a60afc 100644
--- a/drivers/gpu/drm/drm_buffer.c
+++ b/drivers/gpu/drm/drm_buffer.c
@@ -80,11 +80,7 @@ int drm_buffer_alloc(struct drm_buffer **buf, int size)
80 80
81error_out: 81error_out:
82 82
83 /* Only last element can be null pointer so check for it first. */ 83 for (; idx >= 0; --idx)
84 if ((*buf)->data[idx])
85 kfree((*buf)->data[idx]);
86
87 for (--idx; idx >= 0; --idx)
88 kfree((*buf)->data[idx]); 84 kfree((*buf)->data[idx]);
89 85
90 kfree(*buf); 86 kfree(*buf);