aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parser.c
diff options
context:
space:
mode:
authorGuodong Liu <Guodong.Liu@mediatek.com>2023-01-18 14:20:36 +0800
committerLinus Walleij <linus.walleij@linaro.org>2023-01-26 14:39:35 +0100
commit2e34f82ba214134ecf590fbe0cdbd87401645a8a (patch)
treea9301114ae5b456a2a41a5c08eac3416d8740038 /lib/parser.c
parentpinctrl: mediatek: Initialize variable pullen and pullup to zero (diff)
downloadlinux-rng-2e34f82ba214134ecf590fbe0cdbd87401645a8a.tar.xz
linux-rng-2e34f82ba214134ecf590fbe0cdbd87401645a8a.zip
pinctrl: mediatek: Initialize variable *buf to zero
Coverity spotted that *buf is not initialized to zero in mtk_pctrl_dbg_show. Using uninitialized variable *buf as argument to %s when calling seq_printf. Fix this coverity by initializing *buf as zero. Fixes: 184d8e13f9b1 ("pinctrl: mediatek: Add support for pin configuration dump via debugfs.") Signed-off-by: Guodong Liu <Guodong.Liu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230118062036.26258-3-Guodong.Liu@mediatek.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions