From mboxrd@z Thu Jan 1 00:00:00 1970 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 5A55213B2B9; Tue, 27 Feb 2024 13:54:56 +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=1709042096; cv=none; b=llI9vrM3uiYe2YH5XZ/TiETZii7sYfeK0XPRE93RcGvpstyFKkw0mXXPpUBaaTcsxXKDFljohWJj8yKA+PaxMt+5WtgQlD2EgeuaM+KpPDNHUdRrELAoCqfjZui7l3LmFrtTpfuOApyIW2NBPJY5Q5hgSQubEa8T35NmA5IFngA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709042096; c=relaxed/simple; bh=Wc5wOTgDNCXCiYFQD5c4yUavR+bvrF3OG6SJXAhoymo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AyYPdNgta53tNMo9kxNGdP2PnGX554cLi6/SR8+LU278NTzbWooOMTboOMt2smdXIu+vX9VtTHCjOsmliui3nfVSflzq3XNiKVuBdgwJfSSYeHe88u4Jul7w+8iEs6Hn/V+TibD8priT1k1atUX6NpYdZQ77XUN7uwMhk5Pc8Kk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aezCW9F+; 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="aezCW9F+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD8F8C433C7; Tue, 27 Feb 2024 13:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709042096; bh=Wc5wOTgDNCXCiYFQD5c4yUavR+bvrF3OG6SJXAhoymo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aezCW9F+WqVe5YN/Uz9WPoTsCcX4oHI4gE0IGufSDWQ2m+L84T4jvfsB+gXr0CU+S 4CpCfJaQy+cq8v+DvftYybH+2LBqLk44ldhegq6hNNb9aqZXLVI/JDaaJnQ4/y1IyM 8WvPmwaAsbqbRdfq5PbaYGE+63BVztCmcf7v0vTg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andy Shevchenko , Nikita Shubin , Linus Walleij , Alexander Sverdlin , Arnd Bergmann Subject: [PATCH 6.6 177/299] ARM: ep93xx: Add terminator to gpiod_lookup_table Date: Tue, 27 Feb 2024 14:24:48 +0100 Message-ID: <20240227131631.538178990@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131625.847743063@linuxfoundation.org> References: <20240227131625.847743063@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nikita Shubin commit fdf87a0dc26d0550c60edc911cda42f9afec3557 upstream. Without the terminator, if a con_id is passed to gpio_find() that does not exist in the lookup table the function will not stop looping correctly, and eventually cause an oops. Cc: stable@vger.kernel.org Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors") Reported-by: Andy Shevchenko Signed-off-by: Nikita Shubin Reviewed-by: Linus Walleij Acked-by: Alexander Sverdlin Signed-off-by: Alexander Sverdlin Link: https://lore.kernel.org/r/20240205102337.439002-1-alexander.sverdlin@gmail.com Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-ep93xx/core.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c @@ -339,6 +339,7 @@ static struct gpiod_lookup_table ep93xx_ GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), GPIO_LOOKUP_IDX("G", 0, NULL, 1, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), + { } }, };