From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796230831; b=dvlvUO7sxmZGjlqDSDZAnzPbZX7rEfL4dvjMacW9dA7Ci1Poy+YdF3b00iLcSXa+xeSy kgtCYWmcBQ+rlM5dNvVLd7XyqJHnqlnBqfnhm7/UNmk4k635E2ZxCT3Yv2ahrfB4dlqrB YYOaDt/pRo7CubnrUvmaw6WIqlaZrzO1DqaQYhOZw43OzwXjOjJsoQKtRh0fSzGF54m5R d9yBHSnql2bWsBGNX+D8w2aM59e+xVX/4MERRSTQLLcGoL24WwdS3M/p8rfSp1s43FI4e OOmkBxYSEtclZiO2hNHRdKld5M66wXIFUnWFwccC6w6OB0CPfUM9DVHZjFuZYYwwv+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230831; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=iZ30RSEACUWVSKhcfCfifkew5yE7spjS4ltr8Cs0Jt8=; b=C9BX3uj8UIsu253znyvqPmw9wBWe0BECl8XBbNwT8v9hAOLyzXrVlzXnxfQesaQNZYAU 4h+f8kXcYO15Sspj+IWAYNT+1j+llZ+9bLJo4mcsIGm+3bCWhvwsb2AHSlV1p4IHXHnrK Jh3L43LjsfZv9A+CSFtWFhm+PHrQPp58gAWyJ6BWLz6AAMQ6tqWW3C9it9vqgXNDnKgPt nTcRnqhjBRzCtXO1OTi2zf7FoJ2uJQ6aWcy6yUyQdL+hpkbUuSffctH8NhdcyaM+bHceY f/PHmHNKzRtBr7pu+NfIRnGsKVKfRfzeas5nhkv24t3biteDcreH10jISNLp/pJd/AQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kWDxVvQy; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF712606A32A for ; Wed, 2 Dec 2026 17:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kWDxVvQy Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B8B21F00925; Wed, 2 Dec 2026 17:00:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796230831; bh=iZ30RSEACUWVSKhcfCfifkew5yE7spjS4ltr8Cs0Jt8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=kWDxVvQypKt5dsJXmF7IeLll82e3vrVOc3tjZEFe69K6uGq0E45//KrnDp5F71EJI b50B6jEXX1IgpArIpO4P7uPjH3PQhR9XXGPd8TxzV9Tt4ZgKL4Szum+xhtoyTRfYYv /d+EZUvlPWIGrS7g0AuaaMFW7dZ1tIgiW4aI7mOpJUDqe+T5C25rAFRtSch8z0qw8i Xo/jFuSg5qnilUVgzZvphAFl4N1qAeB5aGOYFLVWKneHxz1R93JBjPmdSFehMCbAGv lhjuOXwWqVYyHJPyd8JOfw5DWi+cpP3RvCpk/Tof6J7ZFXy+5PG6orwO3aRno538g8 Ykz6CVAX1c5bw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] serial: icom: fix off-by-one in baud rate table lookup Reply-To: sashiko-reviews@lists.linux.dev To: "Hugo Villeneuve" Cc: linux-serial@vger.kernel.org In-Reply-To: <20261202165708.36577-1-hugo@hugovil.com> References: <20261202165708.36577-1-hugo@hugovil.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 17:00:31 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > The lookup loop only test indices 0 to BAUD_TABLE_LIMIT - 1, leaving the > last entry 460800 unreachable. Requesting exactly that rate always falls > through with new_config3 left at its initializer 0, silently programming > the hardware for 300 baud instead. >=20 > Fix the loop bound to include the last table entry. >=20 > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Cc: stable@vger.kernel.org > Signed-off-by: Hugo Villeneuve Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202165708.3657= 7-1-hugo@hugovil.com?part=3D1