aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2018-12-02 11:04:17 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-12-07 13:22:47 +0100
commita9d9f6b83f1bb05da849b3540e6d1f70ef1c2343 (patch)
tree6f0d7d4d19eea191cb2c9ee36f9aa6a16ef630f2 /tools/perf/scripts/python/export-to-postgresql.py
parentpinctrl: Change to use DEFINE_SHOW_ATTRIBUTE macro (diff)
downloadwireguard-linux-a9d9f6b83f1bb05da849b3540e6d1f70ef1c2343.tar.xz
wireguard-linux-a9d9f6b83f1bb05da849b3540e6d1f70ef1c2343.zip
pinctrl: sx150x: handle failure case of devm_kstrdup
devm_kstrdup() may return NULL if internal allocation failed. Thus using label, name is unsafe without checking. Therefor in the unlikely case of allocation failure, sx150x_probe() simply returns -ENOMEM. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Fixes: 9e80f9064e73 ("pinctrl: Add SX150X GPIO Extender Pinctrl Driver") Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions