Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4546803pxf; Tue, 23 Mar 2021 13:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws/Ye2hsihgxauOfQYQzA73mmP63D6+jnWdQiqIfIlcgCSlwZey4bZSF5YkPiNTSsxUEDW X-Received: by 2002:a17:906:a049:: with SMTP id bg9mr7920ejb.186.1616530844460; Tue, 23 Mar 2021 13:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616530844; cv=none; d=google.com; s=arc-20160816; b=BIyCL40hUafK0lDk4Tqwf3AkZPmK0nePSwKYyFrgyvpt3XPnT8Ez1NyGpU55dG/o3R Fhb6YqtkxGMU1iP+4aTb7VbJZJMVr2ugNBUvJMN0O3FnYukbp8k/2td5iu/xgeuB2byQ if4mMkJod+GgRGntN+Zi7uC8meK932EbYOCp9HCyNQRDXAvhgbfN7oc/j1K/+5DAW/AP 75/hTYBm2+LTK6SbFPP/FjEOCLdpKG2AcMA/KeVQCO86iiBFGNVuWZCsiV9+igvHfeQd WFW5HXjgvHKCHrMAIfc/EhTQC+4HylxifTvI0I96WXnoUbuGGay8eCKCq+C5myf3D4Uz 0+7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=mzUdqnfXwtrtoaMsh3TXXRLu23z5WG6FAbKxH0tVEm0=; b=oG1OTlqioiPLn/ezPlkYfmAbJKs3/eC5sA4d0jq4B5wGcwY/CX+P4Ju0MRPzQR+4in c8rlVWG+cdxgpzDTEkRbwTsh2MrLFQeenMr5Cx+I2IfcGxQwGDQeyUIz+1y8GpB1gneE PKzhEdYPcRBQTjYrZ/iP5eZ6BsD18h9ZA800W5YGMRTtG9+SqPk05wVTUX3Jgha3x83c 5+WKPPc/ahlv9bEe84ACkCGJHxbBU7IBKB/Taq5Sh1mBnIwm8ao4Np7RCKO1X+CmAnKq tIkhQxZE26WwbL7d+CIBIcZFLDmx1ohGx6u2BFzzLDxDOg8IHDYpg2G+6s2mDO1a3oUK aP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fx7IW04j; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx22si17412edb.438.2021.03.23.13.19.56; Tue, 23 Mar 2021 13:20:44 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fx7IW04j; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232711AbhCWUQD (ORCPT + 99 others); Tue, 23 Mar 2021 16:16:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54452 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233072AbhCWUPm (ORCPT ); Tue, 23 Mar 2021 16:15:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616530541; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mzUdqnfXwtrtoaMsh3TXXRLu23z5WG6FAbKxH0tVEm0=; b=Fx7IW04jPdOxRdFAvsDPSqbXmVbMWCLCRg7f8PPvbycsYjgO1fANQSkaPlz/27XKUx7Cpu hj4mVqEh0rqVxJ6dDs6nNShoXNLdTQWD2iVHQd1yGpzjicY8gqAn60/DDgJfmTmpDhcFxI jpzvhCbp3V8Xm8BV51DMEt1rl+cOj+o= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-465-dR_7RDPsN-i2Tym80T9MKQ-1; Tue, 23 Mar 2021 16:15:39 -0400 X-MC-Unique: dR_7RDPsN-i2Tym80T9MKQ-1 Received: by mail-ed1-f71.google.com with SMTP id t27so1520886edi.2 for ; Tue, 23 Mar 2021 13:15:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mzUdqnfXwtrtoaMsh3TXXRLu23z5WG6FAbKxH0tVEm0=; b=YvqyF06Rl7hdSQWkg/DO1JZxdn14HI19tM9i/GW2JoqCLBbNeB68Htsm81layoLiJI GU5wB5UX8UEl0SWr0j6sXAhjKxUrU5la3bRtSQgSed6WOJyzkaSgxwKwn6gmBjPWi8Da /P35YsU43raWGKJCyfBE+1jL5gcazXKdxi2l3DxnqJB07ex79owypePa7Oyl2DO0XwtY nDM7/L0C1pJmhUvFZAoUlEzbnKtAUI1YKtx11Lp2SNsyW6qKJGT00XFjz+0M7DyKcdIf 2dwpEaVIopf/YIEyUgZXRYzpHJKMrK/UHXA3wDUGGAvAcUB8J2Ai2e+2xppVcJCmWcr1 qhAw== X-Gm-Message-State: AOAM533KNsan2oMotdsDoj9okoSnl0WF5hNil8/1RlvtRLNH6KAqaF4y xiK40o4NSdyO6kY9yN4Zg2t7/YFSC5mI3bBpgyaqGxt0GGH9GWcwGcRSqfKmlLhvFaLCz/MC3WF ookTU1xRBU7rDq21ybp2e3Yu6b9sQtFLIi759HNwEn3tibqRKjHUeOy8lQbcVU/KsgAbf+vVtGI iF X-Received: by 2002:a05:6402:31e9:: with SMTP id dy9mr6413928edb.186.1616530538499; Tue, 23 Mar 2021 13:15:38 -0700 (PDT) X-Received: by 2002:a05:6402:31e9:: with SMTP id dy9mr6413914edb.186.1616530538362; Tue, 23 Mar 2021 13:15:38 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id e8sm7165edq.77.2021.03.23.13.15.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 13:15:38 -0700 (PDT) Subject: Re: [PATCH 1/2] platform/x86: intel_pmt_class: Initial resource to 0 To: david.e.box@linux.intel.com, mgross@linux.intel.com Cc: lee.jones@linaro.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210317024455.3071477-1-david.e.box@linux.intel.com> <425422a30006a869f8cbefce3ee6be8764b2b03c.camel@linux.intel.com> From: Hans de Goede Message-ID: <8ecd7af6-1147-a07d-3376-d304c8041b21@redhat.com> Date: Tue, 23 Mar 2021 21:15:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <425422a30006a869f8cbefce3ee6be8764b2b03c.camel@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 3/23/21 6:29 PM, David E. Box wrote: > 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. I've merged this into my review-hans branch now. I'll also them to my fixes branch and add them to my next pull-req to Linus for 5.12. Regards, Hans > 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 > >