drm/i915: Fix memory leaks in scatterlist
authorMatt Atwood <matthew.s.atwood@intel.com>
Wed, 1 Feb 2023 23:28:01 +0000 (15:28 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 6 Feb 2023 16:51:57 +0000 (08:51 -0800)
commit389b9d91dd57fd2d4428bd0c19ed1cacf2fe918d
tree5a54abeba9ea907e263bec7d0f86102089dcc917
parent54762e920eb483bd70aa92421788bc4e87e4fd1d
drm/i915: Fix memory leaks in scatterlist

This patch fixes memory leaks on error escapes in i915_scatterlist.c

Fixes: c3bfba9a2225 ("drm/i915: Check for integer truncation on scatterlist creation")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230201232801.123684-1-matthew.s.atwood@intel.com
drivers/gpu/drm/i915/i915_scatterlist.c