mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 11:03:07 -04:00
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:
committed by
Bartosz Golaszewski
parent
fccb8d28a4
commit
57eb9d14b4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user