From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by gnuweeb.org (Postfix) with ESMTPSA id 796027E6B1 for ; Thu, 3 Mar 2022 02:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646275893; bh=5R8CtEIQAKm9DWp0yzIHx+yDFFKxgK9WMLzK1eontrU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fTBKyPxtbjqj5dfmMrFfkpCL3i+b6lnI76IffnpZQN/DXazvWtHDrFp1qVKdO+OO9 PalyoMXD5foNdo/G/7M+woTNWma+yVH3pngxLco+u5pnSjyP7WlYshmdKV5+/gHVzK /TKbm2eEQR8/r8UxSr9dwbMxBKjq8MZEbQGxUJapgk7Z8F+IeeZizEZ2xl04prQNZp BUp0G18+T7+jRfsiTVJ0FtfAWMtFkUmH9x9qJck3P0tvlr9LCABZsGM4cnAyxjYOlj DQb4HdJXLmdVWqVS98Gs59jgJoWrCI8HuX8/WTWj8iuWg1aBIe1087uXVQMxZwundU oFYZvotz9YNWA== Received: by mail-lf1-f45.google.com with SMTP id u20so6086468lff.2 for ; Wed, 02 Mar 2022 18:51:33 -0800 (PST) X-Gm-Message-State: AOAM531zM2ihY40Nl7vjiXwInZ0NDho6kDSRiqmjtT1SCrDEFcF3CacT SBLjcJP1mRNDZX9v3HOAv9G9R7oTyWd+Z3aH4fk= X-Google-Smtp-Source: ABdhPJyv90IKXz8uZ/SLsv8Ivd2dShHqBxwheVBt3+dCnU5rpnzjNuNHTcMq6jBf+tbGvIfGopymNZ3oqMlZj8Km87A= X-Received: by 2002:ac2:4e85:0:b0:441:94b6:b2c with SMTP id o5-20020ac24e85000000b0044194b60b2cmr20570001lfr.610.1646275891428; Wed, 02 Mar 2022 18:51:31 -0800 (PST) MIME-Version: 1.0 References: <20220301094608.118879-1-ammarfaizi2@gnuweeb.org> <20220301094608.118879-3-ammarfaizi2@gnuweeb.org> <4371a592-6686-c535-4daf-993dedb43cd4@gnuweeb.org> <109a10da-d1d1-c47a-2f04-31796457f6ff@gnuweeb.org> <20220303015826.4176416-1-alviro.iskandar@gnuweeb.org> <49313736-61f8-d001-0fe4-b6166c859585@gnuweeb.org> <9dfe087a-f941-1bc4-657d-7e7c198888ff@gnuweeb.org> In-Reply-To: <9dfe087a-f941-1bc4-657d-7e7c198888ff@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Thu, 3 Mar 2022 09:51:20 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/2] x86/mce/amd: Fix memory leak when `threshold_create_bank()` fails To: Ammar Faizi , Yazen Ghannam Cc: Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Tony Luck , linux-edac@vger.kernel.org, Linux Kernel Mailing List , "GNU/Weeb Mailing List" , x86@kernel.org, stable@vger.kernel.org, Jiri Hladky , Greg Kroah-Hartman , Alviro Iskandar Setiawan Content-Type: text/plain; charset="UTF-8" List-Id: On Thu, Mar 3, 2022 at 9:32 AM Ammar Faizi wrote: > On 3/3/22 9:07 AM, Ammar Faizi wrote: > > On 3/3/22 8:58 AM, Alviro Iskandar Setiawan wrote: > > > hi sir, i think this can be improved again, we can avoid calling > > > this_cpu_read(mce_num_banks) twice if we pass the numbanks as an > > > argument, plz review the changes below > > > > OK, nice improvement. I will fold this in... > > > > It looks like this now. Yazen, Alviro, please review the > following patch. If you think it looks good, I will submit > it for the v5. > i think it looks good, thanks sir -- Viro