summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorNicholas Mc Guire2018-12-02 11:04:17 +0100
committerGreg Kroah-Hartman2019-02-12 19:47:06 +0100
commit389de86c1045966d548f8e8f49e89cf43fd0a9e8 (patch)
tree1a9b9f7dbf2fdeef2bb0d6172cbb601b1b2cc0d4 /drivers/iommu
parentgpio: mt7621: pass mediatek_gpio_bank_probe() failure up the stack (diff)
downloadkernel-qcow2-linux-389de86c1045966d548f8e8f49e89cf43fd0a9e8.tar.gz
kernel-qcow2-linux-389de86c1045966d548f8e8f49e89cf43fd0a9e8.tar.xz
kernel-qcow2-linux-389de86c1045966d548f8e8f49e89cf43fd0a9e8.zip
pinctrl: sx150x: handle failure case of devm_kstrdup
[ Upstream commit a9d9f6b83f1bb05da849b3540e6d1f70ef1c2343 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions