patch "iio: adc: adi-axi-adc: Initialize state mutex" added to char-misc-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio: adc: adi-axi-adc: Initialize state mutex
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 549b71ce050637dd32678371ad76c445a2f8c9aa Mon Sep 17 00:00:00 2001
From: Janani Sunil <[email protected]>
Date: Thu, 13 Aug 2026 15:56:56 +0200
Subject: iio: adc: adi-axi-adc: Initialize state mutex
The AXI ADC register access paths serialize transactions with st->lock, but probe does not initialize it. Initialize the mutex before registering the backend.
--- drivers/iio/adc/adi-axi-adc.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/iio/adc/adi-axi-adc.c +4 -0
@@ -714,6 +714,10 @@ static int adi_axi_adc_probe(struct platform_device *pdev)if (!st)return -ENOMEM ; + ret =devm_mutex_init (dev, &st->lock); +if (ret) +return ret; + base =devm_platform_ioremap_resource (pdev,0 );if (IS_ERR (base))return PTR_ERR (base);
Signature · 1 line
2.55.0