From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D892CC04AB5 for ; Thu, 6 Jun 2019 07:50:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2D23207E0 for ; Thu, 6 Jun 2019 07:50:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="MPE1somu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726014AbfFFHuX (ORCPT ); Thu, 6 Jun 2019 03:50:23 -0400 Received: from mail.skyhub.de ([5.9.137.197]:58834 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbfFFHuX (ORCPT ); Thu, 6 Jun 2019 03:50:23 -0400 Received: from zn.tnic (p200300EC2F1EFA008DFA61B32E935F4C.dip0.t-ipconnect.de [IPv6:2003:ec:2f1e:fa00:8dfa:61b3:2e93:5f4c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 18CEA1EC0249; Thu, 6 Jun 2019 09:50:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1559807422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=yv5Jyf2/aHF2MK724YeYv/G4bYAcwOm2MJNBI2PllQU=; b=MPE1somu2iyfymhz5QPSlfO4vY8gAn+MU40tBZLYjDo6wEJ8AGmNSar897xHgxVQAyy3TV SShoDlG71WQI53MbwI7g6KcnxFDslYTytyEXZzaaIh29wAnIXVt9T4zzVOWcLKs36lrfbs DnKPn+ttugDqi/g1hre848w4rQhLx54= Date: Thu, 6 Jun 2019 09:50:15 +0200 From: Borislav Petkov To: luanshi Cc: Tony Luck , linux-edac@vger.kernel.org Subject: Re: [PATCH] x86/mce: Fix memleak in mce_banks Message-ID: <20190606075015.GC26146@zn.tnic> References: <1559804967-46320-1-git-send-email-zhangliguang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1559804967-46320-1-git-send-email-zhangliguang@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-edac-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org On Thu, Jun 06, 2019 at 03:09:27PM +0800, luanshi wrote: > From: zhangliguang > > The mce_banks is leaked in the error out cases during > __mcheck_cpu_apply_quirks and mce_gen_pool_init. This patch fixes it. Maybe my reply from last night wasn't clear so lemme repeat it again: this patch is not needed because we're removing the kcalloc call there and the banks will be allocated statically in the future. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.