]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: samsung: acpm: Annotate rx_data->cmd with __counted_by_ptr
authorTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 15 May 2026 09:32:26 +0000 (09:32 +0000)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 29 May 2026 14:02:20 +0000 (16:02 +0200)
commit447f406568c153819d6bfce994e422db4e95bb6f
tree55afa1f6f8b442eb080bbfe901f12ecaf24416b3
parentd5cfe2a96d723b6962c5e38bc81cc9994347d326
firmware: samsung: acpm: Annotate rx_data->cmd with __counted_by_ptr

Rename the `n_cmd` member of `struct acpm_rx_data` to `cmdcnt` to
maintain consistent nomenclature across the driver (aligning with
`txcnt`, `rxcnt`, and transfer helpers).

With the member renamed, annotate the dynamically allocated `cmd`
pointer with the `__counted_by_ptr(cmdcnt)` macro to improve runtime
bounds checking.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://patch.msgid.link/20260515-acpm-tmu-helpers-v2-2-8ca011d5a965@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/firmware/samsung/exynos-acpm.c