Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EA1F375AB5 for ; Sun, 29 Mar 2026 13:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774790946; cv=none; b=SzpBwW0y7J8FLnrZ/uX8m5u0VpgEg4QUTMt/oVvc75fHdPh3FI2lHoViJ48LzIaynYDzXNBrFhmg7V/Ap9AyMmLzlC/KAlsWtpBuOTFUyrhzECKwrZbJ7hUEjIkUw8AKRWkHIwtRVdp6bNdiQgxIaKdbrBZZVvB1/poCE0ltyow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774790946; c=relaxed/simple; bh=1BePhV5FLe/Yxt2k+LOBkWl7IZR4x8vksZ+wcz4cOsA=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=pD0HnCZOXGXdhsk2q5IMYdlaAz16oS4VZI6ezzN4Z+imSZ06pYn3TO6o42Hl+/ShWgwR+WyJpaFAL7fbhu8HC1YxVpSdmAkt5H2Ysp0ZkAJIS09/A2mv4zR4lk+sR+VieSm1hYs1DLDSUo3IZPiRMnVni5oe8SQkEDEBM/zZz/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RnGiE0b1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RnGiE0b1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EF36C116C6; Sun, 29 Mar 2026 13:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774790945; bh=1BePhV5FLe/Yxt2k+LOBkWl7IZR4x8vksZ+wcz4cOsA=; h=Subject:To:From:Date:From; b=RnGiE0b17LZVzOAEjlMAbnL1GXNOb+9VV2M5m0h3XE3rmUqsg6td+OUhjp/Bp5Qas fCSK/KMw7Z5zDAfnCdbIEUJsARUSaojFdfgj/06cwtz75pbiaFVkP8/vjIrCnLGQCy WYOTymMAdJQwKOrA9DlUtMQRMRuUnSl0/VIkvyig= Subject: patch "iio: accel: adxl313: add missing error check in predisable" added to char-misc-linus To: antoniu.miclaus@analog.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org,andriy.shevchenko@intel.com From: Date: Sun, 29 Mar 2026 15:28:16 +0200 Message-ID: <2026032916-proton-rarity-2989@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit 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 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. Fixes: ff8093fa6ba4 ("iio: accel: adxl313: add buffered FIFO watermark with interrupt handling") Signed-off-by: Antoniu Miclaus Reviewed-by: Andy Shevchenko Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/accel/adxl313_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/accel/adxl313_core.c b/drivers/iio/accel/adxl313_core.c index 9f5d4d2cb325..83dcac17a042 100644 --- a/drivers/iio/accel/adxl313_core.c +++ b/drivers/iio/accel/adxl313_core.c @@ -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) -- 2.53.0