diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-11-23 19:12:58 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-12-06 00:55:04 +0300 |
commit | 4be1eaf322f07bb9694618fd2763a3a1f0a3dd25 (patch) | |
tree | 21411ccdbfe15d4658db3498f2c892269905a1ce /drivers/pinctrl/pinconf.c | |
parent | 45fd26d39026ac1c80320a934a04d1086ee9224b (diff) | |
download | linux-4be1eaf322f07bb9694618fd2763a3a1f0a3dd25.tar.xz |
pinctrl: nuvoton: check for devm_kasprintf() failure
devm_kasprintf() may return NULL on failure of internal allocation thus
the assignment to .label is not safe if not checked. On error
npcm7xx_gpio_of() returns negative values so -ENOMEM in the
(unlikely) failure case of devm_kasprintf() should be fine here.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 3b588e43ee5c ("pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf.c')
0 files changed, 0 insertions, 0 deletions