From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7EA1C433F5 for ; Fri, 15 Oct 2021 03:11:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 96B5861152 for ; Fri, 15 Oct 2021 03:11:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 96B5861152 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+xfN5N+CG8JXQD/LdBiEeL2wouvwLe2q4QNjr8J3QnU=; b=LwNGIs0uEaZqXR Au1ibSsAre4x+Em0MviFADCC8wFJeMzRqtzAZ1bidmG4+u+s49QoU44cXf6ne0d5BdZ5QPA7NKtO5 pFVlMe2F1LuOJ6BHji0i+6hKC7Zg42PmEXWshyMD7UeYD69rxGp8+ktNiEPsA1SCC4MVtWR+H1E3D KeXG4uVtuiBKkXMgMfvN7ZMhol3S0qrdJHoVnTa1baZSTFfLLQtYV02o/qYCln1L8zXSVrz3hvsKG +Zv9+cdHF6UEkzrmqhlxNbgbutq2nsz2ReLopQjmj/1ylvBcJrhbdSZ8/70Qfxw/QS3VqUBfHLOXE sSU52HgqY01BBaKQ61eQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbDc9-005HU2-Gy; Fri, 15 Oct 2021 03:10:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbDc4-005HSZ-NZ for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 03:10:30 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18555611CC; Fri, 15 Oct 2021 03:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634267428; bh=kXgOJ8sBfwFLadg5Fg+80nI5My/aKal1KpkR8dG4Ymg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YfAcv55P3FDIh7z2OYlmAembI3fq9+KxD9DP8ju1N7cBDAdypgBhThZPqZppbyFir Ci/MIwB8SjZ8HPUHbtsMzHJlZYhk9Y+w0mHK0xkLDh/rFVJDM0eqtvzzXS4PcMX4vL NwntbMR7L6Kh/k1j5LqsnKC6xEQRR1rzqwTsw7/8uZ8ZzWPiB3TIsXcbCxqI5a6lAD 2AxhgwJ4Qt//l502YLBiimSehKPcXejNOGMfNlH0EDDAfJ/ER7V/kcsWPB/LeFiXFO RIowAzjCzxaVJQdQJ+jkFdoKkAFQod+kRgCMrcfgUrvFwIi0n9bh2XaLM0Ovci/ji3 WKLtR61bv6wSQ== Date: Fri, 15 Oct 2021 11:10:22 +0800 From: Shawn Guo To: Dan Carpenter Cc: Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Peng Fan , Philipp Zabel , Frieder Schrempf , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] soc: imx: imx8m-blk-ctrl: off by one in imx8m_blk_ctrl_xlate() Message-ID: <20211015031021.GC22881@dragon> References: <20211011123638.GB15188@kili> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211011123638.GB15188@kili> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_201028_931218_B13A7C90 X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 11, 2021 at 03:36:38PM +0300, Dan Carpenter wrote: > The > comparison should be >= to prevent reading one element beyond the > end of the array. The onecell_data->domains[] array is allocated in > imx8m_blk_ctrl_probe() and it has "onecell_data->num_domains" elements. > > Fixes: 5b340e7813d4 ("soc: imx: add i.MX8M blk-ctrl driver") > Signed-off-by: Dan Carpenter Applied, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel