patch "iio: accel: adxl313: add missing error check in predisable" added to char-misc-linus
Subsystems (4)
This is a note to let you know that I've just added the patch titled
iio: accel: adxl313: add missing error check in predisable
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 9d3fa23d5d55a137fd4396d3d4799102587a7f2b Mon Sep 17 00:00:00 2001
From: Antoniu Miclaus <[email protected]>
Date: Thu, 12 Mar 2026 13:20:23 +0200
Subject: iio: accel: adxl313: add missing error check in predisable
Check the return value of the FIFO bypass regmap_write() before proceeding to disable interrupts.
--- drivers/iio/accel/adxl313_core.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/iio/accel/adxl313_core.c +2 -0
@@ -998,6 +998,8 @@ static int adxl313_buffer_predisable(struct iio_dev *indio_dev) ret =regmap_write (data->regmap,ADXL313_REG_FIFO_CTL ,FIELD_PREP (ADXL313_REG_FIFO_CTL_MODE_MSK ,ADXL313_FIFO_BYPASS )); +if (ret) +return ret; ret =regmap_write (data->regmap,ADXL313_REG_INT_ENABLE ,0 );if (ret)
Signature · 1 line
2.53.0