On Fri, 23 Aug 2024 19:44:41 +0800, Shen Lichuan wrote: > Let the kmemdup_array() take care about multiplication > and possible overflows. > > Using kmemdup_array() is more appropriate and makes the code > easier to audit. > > > [...] Applied, thanks! [1/1] drivers: pinctrl: samsung: Use kmemdup_array instead of kmemdup for multiple allocation https://git.kernel.org/pinctrl/samsung/c/39dbbd4e6778ac5580313ba34409855250633c61 Best regards, -- Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>