]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: pinconf-generic: Use kmemdup_array() over kmemdup()
authorYash Suthar <yashsuthar983@gmail.com>
Sat, 18 Apr 2026 19:11:24 +0000 (00:41 +0530)
committerLinus Walleij <linusw@kernel.org>
Tue, 28 Apr 2026 09:31:28 +0000 (11:31 +0200)
commit728bf8ecac7733848a214b95b1aba41e0ee3ffb9
treefe9d3bbfa16dc34f4e48f4f1282c83d6ec5c6d0e
parent3c8e7ba0e3996723f7e4be7c982826a9c2be828b
pinctrl: pinconf-generic: Use kmemdup_array() over kmemdup()

using kmemdup_array instead of kmemdup ,as it is more
readable and matches the intent of the api.
tested with w=1, no new warnings introduced.

Signed-off-by: Yash Suthar <yashsuthar983@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/pinconf-generic.c