WSL2-Linux-Kernel/drivers/pinctrl/nuvoton
Nicholas Mc Guire 4be1eaf322 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: 3b588e43ee ("pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-12-05 22:55:04 +01:00
..
Kconfig pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver 2018-08-29 10:28:42 +02:00
Makefile pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver 2018-08-29 10:28:42 +02:00
pinctrl-npcm7xx.c pinctrl: nuvoton: check for devm_kasprintf() failure 2018-12-05 22:55:04 +01:00