2021-01-22 10:37:26

by Chris Wilson

[permalink] [raw]
Subject: Re: [PATCH] drm/i915/selftest: Fix potential memory leak

Quoting Pan Bian (2021-01-22 01:56:40)
> Object out is not released on path that no VMA instance found. The root
> cause is jumping to an unexpected label on the error path.

Wouldn't the root cause be whatever caused the allocation to fail?

Language notwithstanding,
Reviewed-by: Chris Wilson <[email protected]>
-Chris