From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795091854; b=eUP3XQ6RQjG8jAyPhR8TQiF9OqFBXwZmVHlFlruK8Ukg3O2yQ/q1Np36s894QzjcxgTA pqAw7f0JbhjTAc8mTR5Uz2m3QERxb8UNUR3iIpajCcUvXtam0z53xnhV1Y3LULsF0TZ12 qhYa1RE81epqDZU/XJfo/w0vdWLpmy2JBnwbS9tpJjJaJdETz34IT8WZbInjYlkXMQYck seVjxNfEfdJ7xCdj32hVy7tPxUdly6nim/j8EEcAbM5hMbYUvehWBK8S2mkddVVDpiQTa zS3VR3H7HokjQjNLvTx9y/N6VM4RIeSuZ5EINTjXGYnlG/XT7bdtGYZf9N/is5D5kxA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795091854; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: In-Reply-To:References:Subject:Message-Id:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Mailer: X-Last-TLS-Session-Version; bh=PxwBCxacHoYLPSc7fd8YHXq1TexJePfZYiAdbugkj4g=; b=FTlqMjm2AqiqlguqMuSj3EN71Dx0IRPgYMtXAJypTCIdb9fPtrQnevZu47eZrEC8CgKE RetWKvFawrDrJy9EuE2P2uimo25PDQkVs1tiokl34QuTiZLOfMqYsETZLLDahpNG9X1Xv F50M+vt5HM7fhefO7XcBb7Gmy5SVf1lETo4mgbbLqJJfKksh3ptXojgRC2chmgdhibtfQ zEm8ECPxBxQtb8rkWqFyZGTOmyhTKcAgSAgnHpnRd6r9SffxI6elRdBifC8mNP9JSc38u 5NFRsaOzvL57MNHxXGRrKOLF4KRHZOp33AxMVNl4VFT20kvkcfHpTzwknLRhjq1UcTQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b="G/UfFKVi"; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3851260A2619 for ; Thu, 19 Nov 2026 12:37:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3851260A2619 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=G/UfFKVi Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 495DAC4CBF3; Thu, 19 Nov 2026 12:37:38 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 0C17560237; Thu, 19 Nov 2026 12:37:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 08EC011BC05F4; Thu, 19 Nov 2026 13:37:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795091852; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=PxwBCxacHoYLPSc7fd8YHXq1TexJePfZYiAdbugkj4g=; b=G/UfFKViB2rK492W2eHR9G7tStdBG6h3B+KtXktZjpis/AVce/0PMcbxPAxQpSgXBB74Qc NIU18loFLDCq2UODCN+HPrT01JyZtN9T9y//eoWhD6n0/ZU3F6sUfe6+yV6iIf4iWR2xxn jf5x1zyQVDrfTG/8Xxi2JLtsNSUsXlaI13pRloYRjVRWTAXsLEs+OtownJS8FaghAHbLoH bw69FUe/efosxTc0DSXo87R98OuGXAJrPmw0u6bFHmn6ReZzvsjNnk2H6tvsQf5Bo9VpPN Y5AYEE3597t7/xxoyH+ontFDWzqXxAj8DpFLrn+jHMaNcn1P45T0qDixzi8AYQ== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Cheng Ming Lin , Gabor Juhos Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org In-Reply-To: <20261119-spinand-cleanup-ecc-engine-v1-1-60d007d2ddd8@gmail.com> References: <20261119-spinand-cleanup-ecc-engine-v1-1-60d007d2ddd8@gmail.com> Subject: Re: [PATCH] mtd: spinand: cleanup ECC engine when spinand_randomizer_init() fails Message-Id: <179509185092.2889394.6227945736733720640.b4-ty@bootlin.com> Date: Thu, 19 Nov 2026 13:37:30 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 On Thu, 19 Nov 2026 09:14:46 +0100, Gabor Juhos wrote: > When the spinand_randomizer_init() fails, the code jumps to the > 'err_cleanup_nanddev' label and the code leaves the ECC engine > initialized. > > Change the respective goto statement to use the correct label which > ensures that the ECC engine gets cleaned up correctly. > > [...] Applied to nand/next, thanks! [1/1] mtd: spinand: cleanup ECC engine when spinand_randomizer_init() fails commit: 8af49d43433c305e0fa773ea705eeb7d08b6ceb6 Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then). Kind regards, Miquèl