All of lore.kernel.org
 help / color / mirror / Atom feed
* Missing null check in rza2_gpio_register
@ 2025-03-28 10:15 henry via Bugspray Bot
  2025-04-27  9:05 ` Andy Shevchenko via Bugspray Bot
  0 siblings, 1 reply; 2+ messages in thread
From: henry via Bugspray Bot @ 2025-03-28 10:15 UTC (permalink / raw)
  To: linux-gpio

henry writes via Kernel.org Bugzilla:

pinctrl: renesas: rza2: Add null check in the rza2_gpio_register

When devm_kasprintf fails, it returns a null pointer. However, this return value is not properly checked in the function rza2_gpio_register. 

A check should be added after the devm_kasprintf call to prevent potential null pointer dereference issues.

CODE:
	chip.label = devm_kasprintf(priv->dev, GFP_KERNEL, "%pOFn", np);
	chip.parent = priv->dev;
	chip.ngpio = priv->npins;

View: https://bugzilla.kernel.org/show_bug.cgi?id=219946#c0
You can reply to this message to join the discussion.
-- 
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Missing null check in rza2_gpio_register
  2025-03-28 10:15 Missing null check in rza2_gpio_register henry via Bugspray Bot
@ 2025-04-27  9:05 ` Andy Shevchenko via Bugspray Bot
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko via Bugspray Bot @ 2025-04-27  9:05 UTC (permalink / raw)
  To: linux-gpio

Andy Shevchenko writes via Kernel.org Bugzilla:

Alredy fixed in the https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/pinctrl/renesas/pinctrl-rza2.c?id=f752ee5b5b86b5f88a5687c9eb0ef9b39859b908.

View: https://bugzilla.kernel.org/show_bug.cgi?id=219946#c1
You can reply to this message to join the discussion.
-- 
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-27  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-28 10:15 Missing null check in rza2_gpio_register henry via Bugspray Bot
2025-04-27  9:05 ` Andy Shevchenko via Bugspray Bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.