drm/i915/guc: Correctly free guc capture struct on error
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 24 Mar 2022 00:04:39 +0000 (17:04 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 25 Mar 2022 17:07:24 +0000 (10:07 -0700)
commitc0c73850637c6ad6a56a6b5ee181897cb35c6c31
tree2de30ec756924a0b28d218bdc36f3402f377203e
parent034d47b25b2ce627f1e1b04242d72db4180f3525
drm/i915/guc: Correctly free guc capture struct on error

On error the "new" allocation is not freed, so add the required kfree.

Fixes: 247f8071d5893 ("drm/i915/guc: Pre-allocate output nodes for extraction")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: John Harrison <john.c.harrison@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220324000439.2370440-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c