summaryrefslogtreecommitdiff
path: root/drivers/mtd/hyperbus
diff options
context:
space:
mode:
authorCharles Han <hanchunchao@inspur.com>2024-11-14 17:18:22 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-11-18 11:45:06 +0100
commit050b23d081da0f29474de043e9538c1f7a351b3b (patch)
treec5ebf806870b40776ea074731836d3366ab40f00 /drivers/mtd/hyperbus
parentb6621b1d4b1d0459ba6b49c0bc498c352ac115ab (diff)
gpio: grgpio: Add NULL check in grgpio_probe
devm_kasprintf() can return a NULL pointer on failure,but this returned value in grgpio_probe is not checked. Add NULL check in grgpio_probe, to handle kernel NULL pointer dereference error. Cc: stable@vger.kernel.org Fixes: 7eb6ce2f2723 ("gpio: Convert to using %pOF instead of full_name") Signed-off-by: Charles Han <hanchunchao@inspur.com> Link: https://lore.kernel.org/r/20241114091822.78199-1-hanchunchao@inspur.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/mtd/hyperbus')
0 files changed, 0 insertions, 0 deletions