From patchwork Thu Mar 10 01:53:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ammar Faizi X-Patchwork-Id: 12775789 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C629C4332F for ; Thu, 10 Mar 2022 01:53:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238910AbiCJByp (ORCPT ); Wed, 9 Mar 2022 20:54:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235354AbiCJByo (ORCPT ); Wed, 9 Mar 2022 20:54:44 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AB27128581; Wed, 9 Mar 2022 17:53:44 -0800 (PST) Received: from integral2.. (unknown [114.10.7.234]) by gnuweeb.org (Postfix) with ESMTPSA id 0374F7E2CC; Thu, 10 Mar 2022 01:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646877223; bh=VgvFD5PbNA6rugPitfY9YWmZEniNGGoHTmksEfV3s5g=; h=From:To:Cc:Subject:Date:From; b=Y2ogKybWOlxy7/UPV3zKqH5BrFkKd1xUhTr4NS0ZSaHHd7p/xDuMumAn/y5f5vA8z 9J98xi8r+omMB/qCvmLVpaI3WVqvp/yMHgGenDInz0Hy8+njGonEZPJG8atDYTMqQE kHsSavRTvHIbMhBov1XzSILqM4qqgf7jN1DDSEzhUC+QLmfWWGsvZEDfLRruKiIaYt Ds0DAvdEwKfzv3Bo/9hmNUzadj/haNEkhU7Ylq0V5N+zrkN8FLwfWvP+nuWSUO5Ep/ lZaSnPTtbIn410Ouay0Urj2F3PRA3r5/sE7WX4WrldZUNJ3iUV1Qjw4QihHaLfx8vk vGM/Zzt0FpgLQ== From: Ammar Faizi To: Borislav Petkov , Thomas Gleixner Cc: Ammar Faizi , Alviro Iskandar Setiawan , Alviro Iskandar Setiawan , Dave Hansen , Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , Tony Luck , Yazen Ghannam , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, gwml@vger.gnuweeb.org, x86@kernel.org Subject: [PATCH v5 0/2] Two x86 fixes Date: Thu, 10 Mar 2022 08:53:04 +0700 Message-Id: <20220310015306.445359-1-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Hi, Two x86 fixes in this series. 1) x86/delay: Fix the wrong Assembly constraint in delay_loop() function. 2) x86/MCE/AMD: Fix memory leak when `threshold_create_bank()` fails. ## Changelog v5: - Mark patch #1 for stable. - Commit message improvement for patch #1 and #2. - Fold in changes from Yazen and Alviro (for patch #2). v4: - Address comment from Greg, sha1 commit Fixes only needs to be 12 chars. - Add the author of the fixed commit to the CC list. v3: - Fold in changes from Alviro, the previous version is still leaking @bank[n]. v2: - Fix wrong copy/paste. Signed-off-by: Alviro Iskandar Setiawan Signed-off-by: Yazen Ghannam Signed-off-by: Ammar Faizi --- Ammar Faizi (2): x86/delay: Fix the wrong asm constraint in `delay_loop()` x86/MCE/AMD: Fix memory leak when `threshold_create_bank()` fails arch/x86/kernel/cpu/mce/amd.c | 32 +++++++++++++++++++------------- arch/x86/lib/delay.c | 4 ++-- 2 files changed, 21 insertions(+), 15 deletions(-) base-commit: 7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3