gpio: sloppy-logic-analyzer: add a comment explaining the buffer init

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>
Link: https://patch.msgid.link/20260712093148.21446-2-wsa+renesas@sang-engineering.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
Wolfram Sang
2026-07-12 11:31:48 +02:00
committed by Bartosz Golaszewski
parent fccb8d28a4
commit 57eb9d14b4

View File

@@ -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);