diff options
author | 2025-02-12 18:05:32 +0800 | |
---|---|---|
committer | 2025-02-25 17:21:50 +0100 | |
commit | acf40ab42799e4ae1397ee6f5c5941092d66f999 (patch) | |
tree | 2e758e1c6cabc4df0baa20d94a19e67aec08750e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | pinctrl: bcm281xx: Fix incorrect regmap max_registers value (diff) | |
download | linux-rng-acf40ab42799e4ae1397ee6f5c5941092d66f999.tar.xz linux-rng-acf40ab42799e4ae1397ee6f5c5941092d66f999.zip |
pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
devm_kasprintf() calls can return null pointers on failure.
But the return values were not checked in npcm8xx_gpio_fw().
Add NULL check in npcm8xx_gpio_fw(), to handle kernel NULL
pointer dereference error.
Fixes: acf4884a5717 ("pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Link: https://lore.kernel.org/20250212100532.4317-1-hanchunchao@inspur.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions