Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2652619pxj; Mon, 31 May 2021 07:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu8kwz9wxm12gnk7BP9KsKoKOmBkLV5pOyMFJHykNpjHwwYOZI0YHVR0Kp9gWnu6D4UzCO X-Received: by 2002:a17:906:fcaa:: with SMTP id qw10mr4513683ejb.233.1622471226226; Mon, 31 May 2021 07:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622471226; cv=none; d=google.com; s=arc-20160816; b=t4z3sGR+xs5g4uHLxFDsb9h6/bFN4n2kIUyJ1MOkPW5g3kDykp41E9gVPkSEkMHbho +TPw6KuRzle/mDJQfWk+HNmoi++yaZsjFoW9otb6OaQ2asI6w6vUuhk3aLThBhylyy+1 S3n2++rcnd7v03FLO8URoCB6dc5IXN1R5FLz4MMJ4KsNwU5A+hDKuphQAog+9k4xKXpC 8iQIXOwUkhP+9aGNO89GNk97nMBAy6UOyvGE6c66J4b5HgsW9382yd08w76Pqp2NApMi dxsInrMMaRgTsdp5NosKvfJQY1EDyFglz7XEehIIrbn7yEccP9j2VNy6X7HGCrwLLFlw myIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8Y639sCRlrIHcr3GvtXep57fhojarpmgnkoaTAvV5eI=; b=AtrbjjKtrPGCtCNbheWJa8e89zR7YDQHfCZYm2eWO27zV8LnCg00/frlA1yhy0P/FR 5CIMChLDxTskOD420wA9qTWhdidJ5RBSUL7+XoS7x/9TSiCt5387JTcnTNc0d7BGLiPv qvuVO68wrrfHcFz9HF80F5rCX/+DCeyTyc3UikChIG/V78ZGUbgTUGPsCaYT+rLNjbxI hptCy17+eN4gtiPyahobGhqEEdb5PBV90RQAPZ5SXv4CrQnzGYjFnZRZOkk87BhXXUwy 3xCvcsqiUMRKDg99N22bpt49qQMHKa+puuRlQ0XM1+XsFmuT8fSyYNCTXq2p0zP3pyNV 9Uaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KYl5e3ZM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si13162582edx.198.2021.05.31.07.26.43; Mon, 31 May 2021 07:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KYl5e3ZM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbhEaO1U (ORCPT + 99 others); Mon, 31 May 2021 10:27:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:54042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbhEaNwA (ORCPT ); Mon, 31 May 2021 09:52:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9C2B6135D; Mon, 31 May 2021 13:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467965; bh=Y5+dEpA0SfVXkbYtN5nq8rOucY7Lmnj4S52INcUap0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KYl5e3ZMtt3eywkR4vmA90qq0KR0z/Djw+GWLkDulWQ5x7grKOkrS4vvREH0ghzRf PASHfY9HU6CARGSK5lBR4FW8mupBp7HmhReJeJ9b4tk2S5O0MmrSZqp/Tx2uSqEGG0 fnP8cHXe+ydU2meaQBDVEq3x5px0R4hxITRR6ghs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Daniel Junho , Andy Shevchenko , Stable@vger.kernel.org Subject: [PATCH 5.10 066/252] iio: adc: ad7923: Fix undersized rx buffer. Date: Mon, 31 May 2021 15:12:11 +0200 Message-Id: <20210531130700.233067255@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Cameron commit 01fcf129f61b26d5b3d2d8afb03e770dee271bc8 upstream. Fixes tag is where the max channels became 8, but timestamp space was missing before that. Fixes: 851644a60d20 ("iio: adc: ad7923: Add support for the ad7908/ad7918/ad7928") Signed-off-by: Jonathan Cameron Cc: Daniel Junho Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20210501165314.511954-3-jic23@kernel.org Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/ad7923.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/iio/adc/ad7923.c +++ b/drivers/iio/adc/ad7923.c @@ -59,8 +59,10 @@ struct ad7923_state { /* * DMA (thus cache coherency maintenance) requires the * transfer buffers to live in their own cache lines. + * Ensure rx_buf can be directly used in iio_push_to_buffers_with_timetamp + * Length = 8 channels + 4 extra for 8 byte timestamp */ - __be16 rx_buf[4] ____cacheline_aligned; + __be16 rx_buf[12] ____cacheline_aligned; __be16 tx_buf[4]; };