Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4438116pxf; Tue, 23 Mar 2021 10:32:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmIt/dvQS/WI1gXQ16U7fY+RmbaKdL4GLurD4RpeZnxjla1Iz/bj4CaW2IEPiRThOOYiOp X-Received: by 2002:a17:906:90c5:: with SMTP id v5mr4923874ejw.466.1616520775062; Tue, 23 Mar 2021 10:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616520775; cv=none; d=google.com; s=arc-20160816; b=XPsKEmmOSX+soqHtUUuZn9mT7kDZZjTnIwzIQASW1B+aiceuECmlZNrFx++FyVLTkx qHA5PH/Fcixeo+a3gss2n+ZhwN2xRmvyZNZBJLBpP1kegxBHnw0Rj8MQ4e7Nle2xSWMn Cm+f0bw5rWPfmgObDQPBt5J5qILmQR4K+KNSPFzQD7L7NL2CfCGIXZ259wlssdaGLwFO dxZyxrhTqfQHV7m2hToJFjEqUvI5l2hF8vkTlYWtHwxSfosLtb7cI21GKOirsoD9t8HJ bPocMwHtoBlc/wVaSazmGBWwJVMS2eXtN/rppDpmdNcM09zusKcSkFfKbgLaVEKpdW92 MBHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:reply-to :from:subject:message-id:ironport-sdr:ironport-sdr; bh=BiSac6RsaIVAYCzajRDvSqvTwQbENnCRifXj7DVH7Uk=; b=oipNunBU9BXTsANCk1VISU9cJq+9WmXhlSAsGmkPIQyfJ7dQKXLxd1hocSuNwRh0tl X2UrnN5Gbqai2Q0W1vd1e30Eu7FlItStW7M1X0OXN+IppL6A5/8ZaQ0G48OL1xwDu4cT m3wKcym5Q02eZ3xIGRVwcU1FtPTxgEqkhb5OUxb7xlll1SbL+Jh4lGiOixOgZyh7abi+ 6hyhexO5oP9/Zv6552IpbjpdehwgiK1qLwk2iB7LKcJYeYmq7euneshbfj53P3pwJBP+ /aB2nOZjVh8jSAqRPwvQBJnvZT+czGMLb89+iTWuNK07Ssklr8XeglnB9qWONJWhL07G Majw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si14733483edv.29.2021.03.23.10.32.32; Tue, 23 Mar 2021 10:32:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbhCWRaf (ORCPT + 99 others); Tue, 23 Mar 2021 13:30:35 -0400 Received: from mga18.intel.com ([134.134.136.126]:35528 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbhCWRaB (ORCPT ); Tue, 23 Mar 2021 13:30:01 -0400 IronPort-SDR: US9CPLsCfhn9B1Ott+uPBM68GVqlebU2CVH7lQFIX2u3pSPYMi0BmISZegezLgB8Ib3nIf9kLV EqRc9v8nSNtA== X-IronPort-AV: E=McAfee;i="6000,8403,9932"; a="178093862" X-IronPort-AV: E=Sophos;i="5.81,272,1610438400"; d="scan'208";a="178093862" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2021 10:30:00 -0700 IronPort-SDR: KUJwac/S3xmUbxV8v0k6vFjfYAUfW9A5HtKSSdDzbH5HXWIJxYcfpTX8RRVRiSOUsjm1cbS9WD D5HRWdTRlywQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,272,1610438400"; d="scan'208";a="604375357" Received: from linux.intel.com ([10.54.29.200]) by fmsmga006.fm.intel.com with ESMTP; 23 Mar 2021 10:29:59 -0700 Received: from debox1-desk1.jf.intel.com (debox1-desk1.jf.intel.com [10.54.75.159]) by linux.intel.com (Postfix) with ESMTP id AEDF2580718; Tue, 23 Mar 2021 10:29:59 -0700 (PDT) Message-ID: <425422a30006a869f8cbefce3ee6be8764b2b03c.camel@linux.intel.com> Subject: Re: [PATCH 1/2] platform/x86: intel_pmt_class: Initial resource to 0 From: "David E. Box" Reply-To: david.e.box@linux.intel.com To: hdegoede@redhat.com, mgross@linux.intel.com Cc: lee.jones@linaro.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 23 Mar 2021 10:29:59 -0700 In-Reply-To: <20210317024455.3071477-1-david.e.box@linux.intel.com> References: <20210317024455.3071477-1-david.e.box@linux.intel.com> Organization: David E. Box Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-03-16 at 19:44 -0700, David E. Box wrote: > Initialize the struct resource in intel_pmt_dev_register to zero to > avoid a > fault should the char *name field be non-zero. Hi Hans. Can these 2 patches be pulled as fixes for 5.12? Thanks. David > > Signed-off-by: David E. Box > --- > > Base commit is v5.12-rc3. > >  drivers/platform/x86/intel_pmt_class.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/intel_pmt_class.c > b/drivers/platform/x86/intel_pmt_class.c > index c8939fba4509..ee2b3bbeb83d 100644 > --- a/drivers/platform/x86/intel_pmt_class.c > +++ b/drivers/platform/x86/intel_pmt_class.c > @@ -173,7 +173,7 @@ static int intel_pmt_dev_register(struct > intel_pmt_entry *entry, >                                   struct intel_pmt_namespace *ns, >                                   struct device *parent) >  { > -       struct resource res; > +       struct resource res = {0}; >         struct device *dev; >         int ret; >   > > base-commit: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0