summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/max6639.h
diff options
context:
space:
mode:
authorShuicheng Lin <shuicheng.lin@intel.com>2026-02-04 17:28:11 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-13 17:20:43 +0100
commit549b68ba830ff0c5bc848179ddf7ccce582842b4 (patch)
treef0a8f68f46d7df7cb4140b53f37f3a2e55c44d1e /include/linux/platform_data/max6639.h
parent9507f9953a2a5647eb42668d0c243fdbd7e72954 (diff)
drm/xe/reg_sr: Fix leak on xa_store failure
[ Upstream commit 3091723785def05ebfe6a50866f87a044ae314ba ] Free the newly allocated entry when xa_store() fails to avoid a memory leak on the error path. v2: use goto fail_free. (Bala) Fixes: e5283bd4dfec ("drm/xe/reg_sr: Remove register pool") Cc: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patch.msgid.link/20260204172810.1486719-2-shuicheng.lin@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> (cherry picked from commit 6bc6fec71ac45f52db609af4e62bdb96b9f5fadb) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/platform_data/max6639.h')
0 files changed, 0 insertions, 0 deletions