Skip to content
Commit a9d9f6b8 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Linus Walleij
Browse files

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: default avatarNicholas Mc Guire <hofrat@osadl.org>
Fixes: 9e80f906 ("pinctrl: Add SX150X GPIO Extender Pinctrl Driver")
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0819dc72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment