Chris Wilson <[email protected]> writes:

> Since the gt powerstate is allocated by i915_gem_init, clean it from
> i915_gem_fini for symmetry and to correct the imbalance on error.
>

Was first confused about the allocation as it is embedded.
But vlv really does allocate an underlying power context object.

And the asymmetry could lead to freeing an not allocated
object on error path.

> Signed-off-by: Chris Wilson <[email protected]>

Reviewed-by: Mika Kuoppala <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to