From: Arnd Bergmann <arnd@arndb.de>
On Thu, 9 Dec 2021 12:04:56 +0000, Sudeep Holla wrote:
Without the bound checks for scpi_pd->name, it could result in the buffer
overflow when copying the SCPI device name from the corresponding device
tree node as the name string is set at maximum size of 30.
Let us fix it by using devm_kasprintf so that the string buffer is
allocated dynamically.
Applied to for-next, thanks!
[1/1] firmware: arm_scpi: Fix string overflow in SCPI genpd driver
commit: c29ec614f0da82db6edd1fece28ebba5ae656155
Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel