From 320d3d12627fcd26ba184d283aae6e6b81bb08cf Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Wed, 24 Jun 2026 21:28:56 -0400 Subject: [PATCH] drivers: hwtracing: coresight: Fix sometimes-uninitialized errors Change-Id: Ia0a6242bec8ceaa27ef623a668e032a08e5fab0d --- drivers/hwtracing/coresight/coresight-byte-cntr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-byte-cntr.c b/drivers/hwtracing/coresight/coresight-byte-cntr.c index 936bafce3457..eaa936ab9c0b 100644 --- a/drivers/hwtracing/coresight/coresight-byte-cntr.c +++ b/drivers/hwtracing/coresight/coresight-byte-cntr.c @@ -74,7 +74,7 @@ static ssize_t tmc_etr_byte_cntr_read(struct file *fp, char __user *data, size_t len, loff_t *ppos) { struct byte_cntr *byte_cntr_data = fp->private_data; - char *bufp; + char *bufp = NULL; int ret = 0; if (!data) return -EINVAL;