Re: [PATCH 1/3] firmware: arm_scmi: Review BASE protocol string-buffers sizes

From: Sudeep Holla
Date: Fri Jun 10 2022 - 13:00:28 EST


On Wed, 8 Jun 2022 10:55:28 +0100, Cristian Marussi wrote:
> SCMI Base protocol agent_name/vendor_id/sub_vendor_id are defined by the
> specification as NULL-terminated ASCII strings up to 16-bytes in length.
>
> The underlying buffers and message descriptors are currently bigger than
> needed; resize them to fit only the strictly needed 16 bytes.
>
> While at that, convert Base protocol strings handling routines to use the
> preferred strscpy.
>
> [...]

Applied to sudeep.holla/linux (for-next/scmi), thanks!

[1/3] firmware: arm_scmi: Review BASE protocol string-buffers sizes
https://git.kernel.org/sudeep.holla/c/4314f9f4f8
[2/3] firmware: arm_scmi: Fix SENSOR_AXIS_NAME_GET behaviour when unsupported
https://git.kernel.org/sudeep.holla/c/8e60294c80
[3/3] firmware: arm_scmi: Use preferred strscpy to handle strings
Merged in 1/3 to avoid any possible bisection issues, since they both
deal with the same issue.

--
Regards,
Sudeep