projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7962652
)
drm/i915: missing error case in init status page
author
Ben Widawsky
<ben@bwidawsk.net>
Fri, 13 Jul 2012 06:16:12 +0000
(23:16 -0700)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 20 Jul 2012 10:21:40 +0000
(12:21 +0200)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_ringbuffer.c
b/drivers/gpu/drm/i915/intel_ringbuffer.c
index ddc48590ea60f5ee6ac8ebc005a47c9dffc2b53a..bf0195a96d5308c48d273cb492081a8d415ba188 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/
drivers/gpu/drm/i915/intel_ringbuffer.c
@@
-972,6
+972,7
@@
static int init_status_page(struct intel_ring_buffer *ring)
ring->status_page.gfx_addr = obj->gtt_offset;
ring->status_page.page_addr = kmap(obj->pages[0]);
if (ring->status_page.page_addr == NULL) {
+ ret = -ENOMEM;
goto err_unpin;
}
ring->status_page.obj = obj;