]> git.baikalelectronics.ru Git - uboot.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)
commita7b52fb89f0b07b27d5da2ccaa89539b7b82007b
tree722505106dcdfcb42b6811958719e798a18ea3a4
parent3f15ddf63b95d5e8cc94d5855983d9fd492a4bce
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: f168d7f9eb ("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