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=1796380060; b=lLHR1zQ02dlOVu+KF0Zqetsd1UKsokso2Tcmg2DIGizpQC3131DXCuNa2vyu1o64Ngs0 kZ1erydg2WYj+3APsuDst0bhElupSzw2muik7mHDR5K5JnuxWJL2IPW2SJ+MIjT5nZV+l YYcpeym1iA7A7Mo8Qg75hWDp1nok5n8tEPol1WMmOtCHEShoui4dZBPDWaoAzhzriF2pI i1Ij74AtJdn00qGykJbh/zNbUuu4rxO4nJ4CT+kJ8UhCV4TQ07FlLYbEgTOGISUlMbwPM W6ToN2pvLrdKCmpmyFAmJPGJDvSDJWSqcBTKpxEPOlse1o9e6euI9azRcg6y0zf0b7g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380060; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=Yv1fYVYCOlBPxvlA2E55SUo/gDZVFYHPklcu0jUp69s=; b=ieMZFKtBfEjri57OFWbLZIVL3SbRJQ61EchKyGSi7trVjoQ8CFw45/TIvuoRwoS6Mfza wchA5weudyxfKC8Dvah2hicaoGbCGBbKe6djGFpOi/7D7N4VgM23z9emb9WMUTx1LzC49 wjWZTiKxYVJeIvtVI3PHyJRuV/BhuC1I8HL7CQp8LI+KSv0dwZqZDj8B3ztyVzA/YEjDz 2v4tO4g8CAv62Oz6ILVsGf6hEXAESN4EoKmJ+ratELVcIws0gXQdwpqIVGcnAEuaKs3Jw biWMXw7y0l/iNWwKDv9rzAqEEsPhnbbisrieUl9j2hwZ/cVLokwTqK4+OWf+JnSHqOg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=C0kWqpk6; 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 50409606A322; Fri, 4 Dec 2026 10:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=C0kWqpk6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ABD91F000C2; Fri, 4 Dec 2026 10:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380060; bh=Yv1fYVYCOlBPxvlA2E55SUo/gDZVFYHPklcu0jUp69s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=C0kWqpk6+Tum5WEs0iYiOYHoz56svCsxNT1vS6S9i9FOHomKIqUPuUDENf6sSMl9V Fz4rO0SQOVSGbIGLMUtzg+zu0j2U/KZTBkRqIvVWHJV8oB9JTuEFrThiOlFcco7hK8 2+ID5zFTB7xxj5reaDki1MOxZr0mngrP16IX1yw8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Heiko Carstens , Jarkko Sakkinen , Alexander Gordeev , Sasha Levin Subject: [PATCH 7.3 110/742] s390/cert_store: Remove unnecessary static specifier in create_cs_keyring() Date: Fri, 4 Dec 2026 18:59:34 +0900 Message-ID: <20261204100638.059085886@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Carstens [ Upstream commit 1a58d930c82fcaf3a6a9e9daf21c7ae9ee088d7e ] The local variable cs_keyring in create_cs_keyring() never reuses its assigned value, therefore remove the static specifier. Callers are serialized by cs_refresh_lock, so this does not fix a bug. Even though this is not a bug fix, this contains a Fixes tag since other commits require this as a prereq. Fixes: 8cf57d7217c3 ("s390: add support for user-defined certificates") Signed-off-by: Heiko Carstens Reviewed-by: Jarkko Sakkinen Signed-off-by: Alexander Gordeev Signed-off-by: Sasha Levin --- arch/s390/kernel/cert_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/cert_store.c b/arch/s390/kernel/cert_store.c index 6ff926ca039a2..0e084fb79aa26 100644 --- a/arch/s390/kernel/cert_store.c +++ b/arch/s390/kernel/cert_store.c @@ -401,7 +401,7 @@ static void cleanup_cs_keys(void) static struct key *create_cs_keyring(void) { - static struct key *cs_keyring; + struct key *cs_keyring; /* Cleanup previous cs_keyring and all associated keys if any. */ cleanup_cs_keys(); -- 2.53.0