Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH] gpio: sloppy-logic-analyzer: add a comment explaining the buffer init
@ 2026-07-12  9:31 Wolfram Sang
  2026-07-13  8:22 ` Bartosz Golaszewski
  2026-07-13  9:20 ` Geert Uytterhoeven
  0 siblings, 2 replies; 6+ messages in thread
From: Wolfram Sang @ 2026-07-12  9:31 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Abdun Nihaal, Wolfram Sang, Linus Walleij, Bartosz Golaszewski,
	linux-gpio

To avoid more false positive reports of "leaking memory" when
fops_buf_size_set() returns an error.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/gpio/gpio-sloppy-logic-analyzer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-sloppy-logic-analyzer.c b/drivers/gpio/gpio-sloppy-logic-analyzer.c
index 2bbd308ca08e..6748ddce3c19 100644
--- a/drivers/gpio/gpio-sloppy-logic-analyzer.c
+++ b/drivers/gpio/gpio-sloppy-logic-analyzer.c
@@ -237,6 +237,7 @@ static int gpio_la_poll_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
+	/* Initially allocate a buffer. It currently is NULL */
 	fops_buf_size_set(priv, GPIO_LA_DEFAULT_BUF_SIZE);
 
 	priv->descs = devm_gpiod_get_array(dev, "probe", GPIOD_IN);
-- 
2.47.3


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

end of thread, other threads:[~2026-07-13 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12  9:31 [PATCH] gpio: sloppy-logic-analyzer: add a comment explaining the buffer init Wolfram Sang
2026-07-13  8:22 ` Bartosz Golaszewski
2026-07-13  9:20 ` Geert Uytterhoeven
2026-07-13  9:46   ` Bartosz Golaszewski
2026-07-13 10:24     ` Geert Uytterhoeven
2026-07-13 11:27     ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox