summaryrefslogtreecommitdiff
path: root/Documentation/gpu/intel-display/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorZhaoJinming <zhaojinming@uniontech.com>2026-05-21 21:08:47 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-06-09 10:34:54 +0300
commita221557958e3a82d8565729d445a7385963f30b6 (patch)
treec3b58e6dd02f510b3d7787de46da16e2dfe0cbb6 /Documentation/gpu/intel-display/git@git.tavy.me:linux.git
parent0b6573e23acc7bca808e539e3edea49683f106de (diff)
platform/x86/intel/tpmi: use cleanup helpers in mem_write()
In mem_write(), the temporary array returned by parse_int_array_user() must be released on all exit paths. Convert the array variable to use cleanup.h scope-based cleanup so it is freed automatically on return. This also moves the array declaration next to parse_int_array_user() as required by cleanup.h usage guidelines. Fixes: 8e0a2fc68ec3 ("platform/x86/intel/tpmi: Use 32 bit aligned address for debugfs mem write") Cc: stable@vger.kernel.org Signed-off-by: ZhaoJinming <zhaojinming@uniontech.com> Link: https://patch.msgid.link/20260521130848.2860219-1-zhaojinming@uniontech.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'Documentation/gpu/intel-display/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions