WSL2-Linux-Kernel/drivers/pinctrl/mediatek
Guodong Liu 11d6f70f07 pinctrl: mediatek: Initialize variable *buf to zero
[ Upstream commit 2e34f82ba2 ]

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: 184d8e13f9 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:39:25 +01:00
..
Kconfig
Makefile
mtk-eint.c
mtk-eint.h
pinctrl-moore.c
pinctrl-moore.h
pinctrl-mt2701.c
pinctrl-mt2712.c
pinctrl-mt6397.c
pinctrl-mt6765.c
pinctrl-mt6779.c
pinctrl-mt6797.c
pinctrl-mt7622.c
pinctrl-mt7623.c
pinctrl-mt7629.c
pinctrl-mt8127.c
pinctrl-mt8135.c
pinctrl-mt8167.c
pinctrl-mt8173.c
pinctrl-mt8183.c
pinctrl-mt8192.c
pinctrl-mt8195.c
pinctrl-mt8365.c
pinctrl-mt8516.c
pinctrl-mtk-common-v2.c
pinctrl-mtk-common-v2.h
pinctrl-mtk-common.c
pinctrl-mtk-common.h
pinctrl-mtk-mt2701.h
pinctrl-mtk-mt2712.h
pinctrl-mtk-mt6397.h
pinctrl-mtk-mt6765.h
pinctrl-mtk-mt6779.h
pinctrl-mtk-mt6797.h
pinctrl-mtk-mt8127.h
pinctrl-mtk-mt8135.h
pinctrl-mtk-mt8167.h
pinctrl-mtk-mt8173.h
pinctrl-mtk-mt8183.h
pinctrl-mtk-mt8192.h
pinctrl-mtk-mt8195.h
pinctrl-mtk-mt8365.h
pinctrl-mtk-mt8516.h
pinctrl-paris.c pinctrl: mediatek: Initialize variable *buf to zero 2023-03-10 09:39:25 +01:00
pinctrl-paris.h