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

From: Ilpo Järvinen

Date: Tue Jun 09 2026 - 10:34:09 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-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next 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: a221557958e3a82d8565729d445a7385963f30b6
[2/2] platform/x86/intel/tpmi: convert mutex in mem_write() to guard
commit: 6736b1801908acfa64ef2b651c5bb78389a8a4c6

--
i.