diff options
author | Haibo Chen <haibo.chen@nxp.com> | 2022-12-11 01:05:58 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2022-12-30 15:38:33 +0300 |
commit | 90fee3dd5bfc1b9f4c8c0ba6cd2a35c9d79ca4de (patch) | |
tree | d54b4b46d612db5c77dddfe0a38d38ef2e20e2e5 /tools/perf/scripts/python/task-analyzer.py | |
parent | ba2dc1cb5491712a6946d0595cf11ba463f50e64 (diff) | |
download | linux-90fee3dd5bfc1b9f4c8c0ba6cd2a35c9d79ca4de.tar.xz |
gpio: pca953x: avoid to use uninitialized value pinctrl
There is a variable pinctrl declared without initializer. And then
has the case (switch operation chose the default case) to directly
use this uninitialized value, this is not a safe behavior. So here
initialize the pinctrl as 0 to avoid this issue.
This is reported by Coverity.
Fixes: 13c5d4ce8060 ("gpio: pca953x: Add support for PCAL6534")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions