summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sunxi
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 /drivers/pinctrl/sunxi
parent0819dc72ea70a90ad2a070e76708ee53bac47caa (diff)
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 'drivers/pinctrl/sunxi')
0 files changed, 0 insertions, 0 deletions