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)
committerJani Nikula <jani.nikula@intel.com>
Wed, 15 Feb 2023 15:33:07 +0000 (17:33 +0200)
commit679caae16175d17467ee1ad1f05dd72d8d4b0973
tree6e4ca59377cadd09cbec0184291a855cf40f82c2
parentfe7f56a7adfbb17bba2454fd97fd97caf9dbddd5
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
(cherry picked from commit 389b9d91dd57fd2d4428bd0c19ed1cacf2fe918d)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_scatterlist.c