diff options
author | 2023-01-18 14:20:36 +0800 | |
---|---|---|
committer | 2023-01-26 14:39:35 +0100 | |
commit | 2e34f82ba214134ecf590fbe0cdbd87401645a8a (patch) | |
tree | a9301114ae5b456a2a41a5c08eac3416d8740038 /lib/parser.c | |
parent | pinctrl: mediatek: Initialize variable pullen and pullup to zero (diff) | |
download | linux-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