Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1671798rwd; Thu, 8 Jun 2023 23:55:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6keVsxAKUf+kii+2CaGfMyW0DMQTgMgthhpiXXiRVdthIHmfbUhC7da4ecUrx66BIh+sny X-Received: by 2002:a05:6a20:d90b:b0:10e:d3a0:cddf with SMTP id jd11-20020a056a20d90b00b0010ed3a0cddfmr494768pzb.12.1686293755468; Thu, 08 Jun 2023 23:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686293755; cv=none; d=google.com; s=arc-20160816; b=HUTaDwneHmtILYsAs/G9U3ZZDwUI1GvV3hWU4lFxq0YUh1Ptrd/Bz+tfszwCp8ClDY RCkHm3st26s1iznRdASUPGRih6vm3B+fvU3ApaQkfeLKJ5ujtjea1VzfvV6R9++dOxXp 9NDWR78xvUvFO+lZzRV2F6UlpnJvWROVQOYiMjMsoCCVlGyUQzVMuZK6qLgqRZU5Ob+I /qFr5VVp0+npXChUHknuySJgO9otq4Jy3WVpJnT28Hynlemb0s15vxzgqIWt0oUj2oeJ Y6uB0OBRyOskBhGJxwlaT0FKx5j5nzmCwMl9bHwb7Sl+PlD98XL+A/hSxEa5buAaDYUm wzpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/wAZm2qQ/QgsC1y9HfCYEaYhuk5cpgHMRDsqA9B8OAk=; b=VWL8IsyDu7/nShLCmLYOlU0XppfcQIxkiilJtDopg4Ctqv+UGJFOcLsnIfWGbeyPVM hqlFcSApgiuO3GVyeZ4XA6y2jdeqqIaQV9YFMBKDg0rb7SJa1YqsMd+MfQmyoqBUidU1 x3/8hVEz3HL1bhgi/JYMNl7sSIMfSveM0lRwVdtdKKqgJe1mj06WeDsQmxjPkkpD27kS dxNxmQ5kn2lXfjTH27I3KXgb6xEnN1Zq1Jaxi3U4pj35CwhHWAk+kXLbHOefqkgEssKX LTQe/gkaQKNqbOBR4TpTpnXOELY/T1pdBGDNtHJBqpghUs89SKNpx8xaF4PqTYGVk46N Pv7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lf5uNDli; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c30-20020a056a00009e00b00660b5630908si11600pfj.269.2023.06.08.23.55.41; Thu, 08 Jun 2023 23:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lf5uNDli; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237792AbjFIGjN (ORCPT + 99 others); Fri, 9 Jun 2023 02:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237714AbjFIGjE (ORCPT ); Fri, 9 Jun 2023 02:39:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32EAF30FD for ; Thu, 8 Jun 2023 23:39:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ADE64653E8 for ; Fri, 9 Jun 2023 06:39:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C223C433EF; Fri, 9 Jun 2023 06:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686292743; bh=rlmD3FizMVpwgfr4E8jU37pfei9MDvw1ODpEsN/nfTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lf5uNDli+WbWMR2shDgwvVSAJRB+ZsXZnahNmKgwhxQfaakzHOzqH5+zZ2YTATfls CZsSym5qnAXUpBRBujEbLcN04wLI9SXf/tIFDm1Am6QcGsxnfn1nwVbbLb/oZBDaHe Mi3zwrwORvS5dXg5AC4VAj1r8j4eU4FjAuA6fMFbII1NAEVTB1D/nuAxpz/PRsO+IE W4+BaSoRPzkl6Ii4ApG8op4nLhHzCpPa+9BYvZFJ/yigHgZEW5DBtJakP9Z34Cpqzp zQ0d9JEF7iwzRnifqbtTxmPUtR/CcMdnumvqlYkowbmLA5tzZ3rV3CxZvPvOIcyXzW ceKGST7XlnaFA== Date: Fri, 9 Jun 2023 07:38:59 +0100 From: Lee Jones To: Jiasheng Jiang Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mfd: intel-lpss: Add missing check for platform_get_resource Message-ID: <20230609063859.GC3635807@google.com> References: <20230609014818.28475-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230609014818.28475-1-jiasheng@iscas.ac.cn> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 09 Jun 2023, Jiasheng Jiang wrote: > Add the missing check for platform_get_resource and return error > if it fails. > > Fixes: 4b45efe85263 ("mfd: Add support for Intel Sunrisepoint LPSS devices") > Signed-off-by: Jiasheng Jiang > --- > Changelog: > > v1 -> v2: > > 1. Replace "-ENOMEM" with "-ENODEV". > --- > drivers/mfd/intel-lpss-acpi.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks -- Lee Jones [李琼斯]