Commit 2e6c21ed authored by Ben Widawsky's avatar Ben Widawsky Committed by Daniel Vetter

drm/i915: missing error case in init status page

Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 79626523
...@@ -972,6 +972,7 @@ static int init_status_page(struct intel_ring_buffer *ring) ...@@ -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.gfx_addr = obj->gtt_offset;
ring->status_page.page_addr = kmap(obj->pages[0]); ring->status_page.page_addr = kmap(obj->pages[0]);
if (ring->status_page.page_addr == NULL) { if (ring->status_page.page_addr == NULL) {
ret = -ENOMEM;
goto err_unpin; goto err_unpin;
} }
ring->status_page.obj = obj; ring->status_page.obj = obj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment