summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-10-10 17:13:13 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-10-12 11:14:38 +0200
commit4fe81669df50889ff1072c030c59df5f1fa6534e (patch)
tree63196408e0988bff9187192c68c1dec94338a5ed /Makefile
parenta85c928f6a7856a09e47d9b37faa3407c7ac6a8e (diff)
downloadblackbird-obmc-linux-4fe81669df50889ff1072c030c59df5f1fa6534e.tar.gz
blackbird-obmc-linux-4fe81669df50889ff1072c030c59df5f1fa6534e.zip
pinctrl: madera: Fix uninitialized variable bug in madera_mux_set_mux
There is a potential execution path in which variable *ret* is checked in an IF statement, and then its value is used to report an error at line 659 without being properly initialized previously: 659 if (ret) 660 dev_err(priv->dev, "Failed to write to 0x%x (%d)\n", reg, ret); Fix this by initializing variable *ret* to 0 in order to avoid unpredictable or unintended results. Addresses-Coverity-ID: 1471969 ("Uninitialized scalar variable") Fixes: 218d72a77b0b ("pinctrl: madera: Add driver for Cirrus Logic Madera codecs") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud