]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: fix buffer size for pinctrl_generic_set_state_prefix()
authorJohn Keeping <john@metanate.com>
Wed, 7 Sep 2022 11:11:42 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 11 Oct 2022 19:40:48 +0000 (15:40 -0400)
commit7eda1a95331d1ccd17e5af6fb18bf5577f81a451
tree722505106dcdfcb42b6811958719e798a18ea3a4
parent45455e8ff5634e77aede803f9a772dba08b9674f
pinctrl: fix buffer size for pinctrl_generic_set_state_prefix()

This buffer has the concatenated prefix and name written into it, so it
must be large enough to cover both strings plus the terminating NUL.

Fixes: 92c4a95ec7 ("pinctrl: Add new function pinctrl_generic_set_state_prefix()")
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-generic.c