From ce01923678c90d46c0fd73903e4f2a2fcb405255 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Wed, 24 Jun 2026 21:27:17 -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 d85b769ea9ce..a58649c839dc 100644 --- a/drivers/hwtracing/coresight/coresight-byte-cntr.c +++ b/drivers/hwtracing/coresight/coresight-byte-cntr.c @@ -80,7 +80,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;