[Intel-gfx] [PATCH 14/22] drm/i915: treat stolen as a region

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 27 19:30:08 UTC 2019


Quoting Matthew Auld (2019-09-27 18:34:01)
> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_region.c b/drivers/gpu/drm/i915/gem/i915_gem_region.c
> index 0aeaebb41050..77e89fabbddf 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_region.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_region.c
> @@ -159,7 +159,7 @@ i915_gem_object_create_region(struct intel_memory_region *mem,
>                 return ERR_PTR(-E2BIG);
>  
>         obj = mem->ops->create_object(mem, size, flags);
> -       if (!IS_ERR(obj))
> +       if (!IS_ERR_OR_NULL(obj))

Have a prep patch to bring stolen function signature into line.
-Chris


More information about the Intel-gfx mailing list