Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp165607pxj; Thu, 3 Jun 2021 03:44:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqqAcOGgBDGvOjcyF4IQrjS4Ecn4nnm6VHADJlpRQ93Rh7B3Tt+Eh3xivfHRD2Pe8pbYnW X-Received: by 2002:a17:907:2057:: with SMTP id pg23mr5634905ejb.113.1622717053823; Thu, 03 Jun 2021 03:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622717053; cv=none; d=google.com; s=arc-20160816; b=FufzNwvGK9s3ixEbdhT4gQwKJeFQ9jiy5IySAodz3snQocGtHmdTcKgwA959eYevBX zQzy8gh+xhsTwSMKiPUxKMP29OKW9g5lkXty64f9iYfhhUdzMhoKurhCuhHR23jUNteC m/Ej8SQjQY4G/3i45C3a80vO17R/NjwupdmOmImvLLKnqx9at14C9JUicVTk+rNaNb+C OUppP2EfmoesL7udwIbHnKTFZ81cFOTQifz9HsP+186cEP2cRoUxkkdF+kIuLYgL1Ygv BfwJTzSF9Poz7FUPYWnlK+28HAKEnfNeHlksGSRJKCUaH6H31iVkjz3keLcOyorbghmh lF6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=iUvKmN+fqFjskHKlEl3ZMpTPtV5E192R6HGt/GOSZt8=; b=SnBpMnqiBtBSB8IzutR6ritzG18qNgrV9p0NfncT5s+T7tsXLT2bkuDGnpjlkD7uPl 6TZUFHM/3J3zt0+xiGv5JF6W/1kTR6XO4o8wSksfTK8/mNMjPelq7XkSjVOurxqvU3Zl lPKb5CpK75M0408ytBLWoJA+38eLzKn2w9p11NXUDmYzMNbhbVfWvNPnp+B0GiYQR723 tZEzhfxn4Yg6nK0nMQzzJ95q+cgMZXYDvDcN6TmPtRkUvrTzoYjy8pebN29JQCJf9b/c NsIwIYnMNM5Lh9MSkFez5GBe4aZHBHHK3Zmltdgx8EMeGsuC7rL3XWuiemHMeOApyyGZ asGQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si2309871eje.519.2021.06.03.03.43.50; Thu, 03 Jun 2021 03:44:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbhFCKlp (ORCPT + 99 others); Thu, 3 Jun 2021 06:41:45 -0400 Received: from mg.richtek.com ([220.130.44.152]:49406 "EHLO mg.richtek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbhFCKlo (ORCPT ); Thu, 3 Jun 2021 06:41:44 -0400 X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTP Server V5.0(4326:0:AUTH_RELAY) (envelope-from ); Thu, 03 Jun 2021 18:39:52 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.5; Thu, 3 Jun 2021 18:39:52 +0800 Received: from ex3.rt.l ([fe80::ede0:40a5:8f78:963e]) by ex3.rt.l ([fe80::ede0:40a5:8f78:963e%2]) with mapi id 15.02.0858.010; Thu, 3 Jun 2021 18:39:52 +0800 From: =?utf-8?B?Y3lfaHVhbmco6buD5ZWf5Y6fKQ==?= To: "axel.lin@ingics.com" , "broonie@kernel.org" CC: "lgirdwood@gmail.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL Thread-Topic: [PATCH] regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL Thread-Index: AQHXWF3W9ZPy12H82kGo4cvVJ5UzdasBkriA Date: Thu, 3 Jun 2021 10:39:51 +0000 Message-ID: <1622716791.1034.13.camel@richtek.com> References: <20210603094944.1114156-1-axel.lin@ingics.com> In-Reply-To: <20210603094944.1114156-1-axel.lin@ingics.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.18.5.2-0ubuntu3.2 x-originating-ip: [192.168.8.47] Content-Type: text/plain; charset="utf-8" Content-ID: <530ECB73A7BC924483363760B680EBD8@rt.l> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEF4ZWw6DQoNCldoaWNoIGNhc2Ugd2lsbCBjYXVzZSB0aGlzIGVycm9yPyBJJ20gbm90IHJl YWxseSBzdXJlLg0KQnV0IGlmIGRldm1fZ3Bpb2RfZ2V0X2FycmF5X29wdGlvbmFsIHdpbGwgcmV0 dXJuIG51bGwsIHRoZW4gaXQgbXVzdCBiZSBjaGVjaw0KZWFybGllciBpbiBwcm9iZSBmdW5jdGlv bg0KDQogICAgICAgIHByaXYtPmVuYWJsZV9ncGlvcyA9IGRldm1fZ3Bpb2RfZ2V0X2FycmF5X29w dGlvbmFsKCZpMmMtPmRldiwgImVuYWJsZSIsDQpHUElPRF9PVVRfSElHSCk7DQotICAgICAgIGlm IChJU19FUlIocHJpdi0+ZW5hYmxlX2dwaW9zKSkgeysgICAgICAgaWYgKElTX0VSUl9PUl9OVUxM KHByaXYtPmVuYWJsZV9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