summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-03-08 01:56:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-22 09:17:15 +0300
commit5a1de21ca49140ef8088bbb8d322c2ade58ccfac (patch)
treeebcfa82465d3df4fdb1868ff76e239b6153bd11e /drivers/clk
parent9823dc87a2e3b0d0310b83212259eba56a1efbd4 (diff)
downloadlinux-5a1de21ca49140ef8088bbb8d322c2ade58ccfac.tar.xz
soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher
[ Upstream commit 89e28da82836530f1ac7a3a32fecc31f22d79b3e ] When building with -Wsometimes-uninitialized, Clang warns: drivers/soc/mediatek/mtk-pmic-wrap.c:1358:6: error: variable 'rdata' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized] If pwrap_write returns non-zero, pwrap_read will not be called to initialize rdata, meaning that we will use some random uninitialized stack value in our print statement. Zero initialize rdata in case this happens. Link: https://github.com/ClangBuiltLinux/linux/issues/401 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions