[Intel-gfx] [PATCH 2/5] drm/i915/guc: Add GuC ADS (Addition Data Structure) - allocation

Chris Wilson chris at chris-wilson.co.uk
Wed Dec 16 23:19:37 PST 2015


On Wed, Dec 16, 2015 at 01:40:52PM -0800, yu.dai at intel.com wrote:
> +	page = i915_gem_object_get_page(obj, 0);
> +	ads = kmap_atomic(page);
> +	if (!ads) {

kmap_atomic() cannot fail.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list