diff options
author | Guodong Liu <Guodong.Liu@mediatek.com> | 2023-01-18 09:20:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-11 18:39:34 +0300 |
commit | d2eb2e7125143fc4531b938c2c47e365b9f1a436 (patch) | |
tree | a3d2ca817529f5d7d76fc23101379fbf7d850852 /crypto/algapi.c | |
parent | a46d29437b0a2a948d368758cd50396272be910c (diff) | |
download | linux-d2eb2e7125143fc4531b938c2c47e365b9f1a436.tar.xz |
pinctrl: mediatek: Initialize variable pullen and pullup to zero
[ Upstream commit a298c70a10c604a6b3df5a0aa56597b705ba0f6b ]
Coverity spotted that pullen and pullup is not initialized to zero in
mtk_pctrl_show_one_pin. The uninitialized variable pullen is used in
assignment statement "rsel = pullen;" in mtk_pctrl_show_one_pin, and
Uninitialized variable pullup is used when calling scnprintf. Fix this
coverity by initializing pullen and pullup 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-2-Guodong.Liu@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions