]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: i915_pages_create_for_stolen should return err ptr
authorMatthew Auld <matthew.auld@intel.com>
Fri, 18 Nov 2016 17:02:16 +0000 (17:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Nov 2016 20:48:58 +0000 (20:48 +0000)
commit1120d60c69870e303200d33d78c18f1ad80d990a
treea02f44e186686325af9995908055d000645ab39d
parentc5a63a022468f5f3d02e45e2045a383806b075d2
drm/i915: i915_pages_create_for_stolen should return err ptr

When gathering the pages from our backing storage we expect get_pages()
to either give us our sg_table or an err ptr. However when gathering our
fake pages for stolen memory we may return NULL in the event of a
failure. To prevent any funny business we should therefore return the
proper err ptr value.

Fixes: 82086bb587b4 ("drm/i915: Pass around sg_table to get_pages/put_pages backend")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479488536-6168-1-git-send-email-matthew.auld@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_stolen.c