Re: [PATCH v4 1/2] platform/x86/intel/tpmi: use cleanup helpers in mem_write()

From: Ilpo Järvinen

Date: Tue May 26 2026 - 13:34:46 EST


On Thu, 21 May 2026 21:08:47 +0800, ZhaoJinming wrote:

> 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.
>
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/2] platform/x86/intel/tpmi: use cleanup helpers in mem_write()
commit: 6b2f633dbf134e5a9db44dc45c494ba829a7686e
[2/2] platform/x86/intel/tpmi: convert mutex in mem_write() to guard
(no commit info)

--
i.