Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp363070pxb; Wed, 20 Jan 2021 08:45:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8vKVeWSf6m63xIvWRXvTYCY2ImsC/f29826hUt8WyZhf/V4MF9ulSnB2IS07h1Sgg5j0R X-Received: by 2002:a17:906:a192:: with SMTP id s18mr6338422ejy.249.1611161145035; Wed, 20 Jan 2021 08:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611161145; cv=none; d=google.com; s=arc-20160816; b=rHzXxEMTmZpnaY3K7dWpP974GQUPDeAyeeYCT3w2j8vfSuTVCbTwS+QBenRipf3P/5 6lRHmCGjg8KV+cUjExr3My9sa1XrRw9mfNsD9SJctYpg1bklujA+yShJC5DItoIaoQJi hEpEzufb2GnEBE0YgpQTiCi5OARTnMwTF6UTuxHr4MSPj9V8dOuZhIEHaoONRI3/5iaK he2nNd98lI4hqBxs6s3OkybxfVpuKfRHkT7rNeskdgqJcd/eEXjVkBMnWaRXrGO/bwfx ISN7AoEbjTMRIeI9Mt0Dcjscj91cDvcRx1O+HYZP8wzdsLWMj2b5qi/TVf7XbJ2AZAy8 6X3Q== 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 :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=RGo7LhnmsFv5vyh4FkaeGeqotzLQNrhw7y/CrBsmekk=; b=eBRmPpEdjdulrwWdokzikbu6Syg5GmRGMZgww9BOAaRCO9cRiyoDXeKmGzUebz3pXq gdBmat5YC4xFHofeA7t5j5MI/8o0w5dMJcDHXvpsRKal/bthFTRILPYap1L7kzcc8GC7 cMkFbgJW0MM2n+WbpoGudT1Vbxcsec/Ff72PWWB12ZHil4gxk09T8t3rR6FHyxOC1nuh Fqdgbdde3fmD89f6osLmlc9Z02Lu1WJNSPQ1D2P7LORAzkr7/O3ELkrq98KrTFKfloVl KbC40Nfq4io960Y2j2Xu/GJtzqdVBaiRmwqjeDzFZjPQfutz88f6kmvlHlCXJ+bpPLxu TmFg== 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 s26si872110ejv.241.2021.01.20.08.45.20; Wed, 20 Jan 2021 08:45:45 -0800 (PST) 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 S1732743AbhATQo1 (ORCPT + 99 others); Wed, 20 Jan 2021 11:44:27 -0500 Received: from mga12.intel.com ([192.55.52.136]:60176 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391700AbhATQmH (ORCPT ); Wed, 20 Jan 2021 11:42:07 -0500 IronPort-SDR: cYWbECLY6an8+o9OLepbjEl/V6nHX0INR4GbFJO99TehdSS/pA4tWKVseiiZxov1TdxCWC6/Ds GAdf2KAMey9g== X-IronPort-AV: E=McAfee;i="6000,8403,9870"; a="158316274" X-IronPort-AV: E=Sophos;i="5.79,361,1602572400"; d="scan'208";a="158316274" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2021 08:41:19 -0800 IronPort-SDR: xIusPTD4ddCpvVbKIfN2IuQwDXNhZ4A+eQn8J09Terc4hJI2jqYDOAk9LMbX5yREEBOK43JfhL kwtHA+9NT2Rg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,361,1602572400"; d="scan'208";a="356108538" Received: from irsmsx604.ger.corp.intel.com ([163.33.146.137]) by fmsmga008.fm.intel.com with ESMTP; 20 Jan 2021 08:41:17 -0800 Received: from irsmsx601.ger.corp.intel.com (163.33.146.7) by IRSMSX604.ger.corp.intel.com (163.33.146.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 20 Jan 2021 16:41:16 +0000 Received: from irsmsx601.ger.corp.intel.com ([163.33.146.7]) by irsmsx601.ger.corp.intel.com ([163.33.146.7]) with mapi id 15.01.1713.004; Wed, 20 Jan 2021 16:41:16 +0000 From: "Rojewski, Cezary" To: Pierre-Louis Bossart , =?utf-8?B?xYF1a2FzeiBNYWpjemFr?= CC: Marcin Wojtas , Liam Girdwood , Mateusz Gorski , Radoslaw Biernacki , "Alex Levin" , Guenter Roeck , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , =?utf-8?B?QW1hZGV1c3ogU8WCYXdpxYRza2k=?= Subject: RE: [PATCH v2] ASoC: Intel: Skylake: Check the kcontrol against NULL Thread-Topic: [PATCH v2] ASoC: Intel: Skylake: Check the kcontrol against NULL Thread-Index: AQHW1HWlBDRR5udg2US7JjUHUSX5h6okBMqAgAzZ2oCAAAxcgIAAAbqw Date: Wed, 20 Jan 2021 16:41:16 +0000 Message-ID: <371e612ac59c458cad1bafb82ca09c9f@intel.com> References: <20201210121438.7718-1-lma@semihalf.com> <20201217130439.141943-1-lma@semihalf.com> <8c22c415-1807-b673-20e3-bc8d7f4c05b7@linux.intel.com> In-Reply-To: <8c22c415-1807-b673-20e3-bc8d7f4c05b7@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [163.33.253.164] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAyMS0wMS0yMCA1OjMzIFBNLCBQaWVycmUtTG91aXMgQm9zc2FydCB3cm90ZToNCj4gT24g MS8yMC8yMSA5OjQ5IEFNLCDFgXVrYXN6IE1hamN6YWsgd3JvdGU6DQo+PiBIaSBQaWVycmUsDQo+ Pg0KPj4gSXMgdGhlcmUgYW55dGhpbmcgbW9yZSB0byBkbyB0byBnZXQgdGhlIEFDSyBmb3IgdGhp cyBwYXRjaD8NCj4gDQo+IEFkZGluZyBDZXphcnkgYW5kIEFtYWRldXN6IGZvciBmZWVkYmFjaywg SSBjYW4ndCBwcmV0ZW5kIGhhdmluZyBhbnkgc29ydCANCj4gb2Yga25vd2xlZGdlIG9uIHRoZSBT a3lsYWtlIGRyaXZlciBpbnRlcm5hbHMgYW5kIHRvcG9sb2d5IHVzYWdlLg0KPiANCg0KVGhhbmtz IGZvciB0aGUgQ0MsIFBpZXJyZS4NCg0KLi4uDQoNCj4+Pj4NCj4+Pj4gZGlmZiAtLWdpdCBhL3Nv dW5kL3NvYy9pbnRlbC9za3lsYWtlL3NrbC10b3BvbG9neS5jIA0KPj4+PiBiL3NvdW5kL3NvYy9p bnRlbC9za3lsYWtlL3NrbC10b3BvbG9neS5jDQo+Pj4+IGluZGV4IGFlNDY2Y2Q1OTI5MjIuLjhm MGJmZGE3MDk2YTkgMTAwNjQ0DQo+Pj4+IC0tLSBhL3NvdW5kL3NvYy9pbnRlbC9za3lsYWtlL3Nr bC10b3BvbG9neS5jDQo+Pj4+ICsrKyBiL3NvdW5kL3NvYy9pbnRlbC9za3lsYWtlL3NrbC10b3Bv bG9neS5jDQo+Pj4+IEBAIC0zNjE4LDEyICszNjE4LDE4IEBAIHN0YXRpYyB2b2lkIHNrbF90cGxn X2NvbXBsZXRlKHN0cnVjdCANCj4+Pj4gc25kX3NvY19jb21wb25lbnQgKmNvbXBvbmVudCkNCj4+ Pj4gICAgICAgICAgaW50IGk7DQo+Pj4+DQo+Pj4+ICAgICAgICAgIGxpc3RfZm9yX2VhY2hfZW50 cnkoZG9iaiwgJmNvbXBvbmVudC0+ZG9ial9saXN0LCBsaXN0KSB7DQo+Pj4+IC0gICAgICAgICAg ICAgICBzdHJ1Y3Qgc25kX2tjb250cm9sICprY29udHJvbCA9IGRvYmotPmNvbnRyb2wua2NvbnRy b2w7DQo+Pj4+IC0gICAgICAgICAgICAgICBzdHJ1Y3Qgc29jX2VudW0gKnNlID0NCj4+Pj4gLSAg ICAgICAgICAgICAgICAgICAgICAgKHN0cnVjdCBzb2NfZW51bSAqKWtjb250cm9sLT5wcml2YXRl X3ZhbHVlOw0KPj4+PiAtICAgICAgICAgICAgICAgY2hhciAqKnRleHRzID0gZG9iai0+Y29udHJv bC5kdGV4dHM7DQo+Pj4+ICsgICAgICAgICAgICAgICBzdHJ1Y3Qgc25kX2tjb250cm9sICprY29u dHJvbDsNCj4+Pj4gKyAgICAgICAgICAgICAgIHN0cnVjdCBzb2NfZW51bSAqc2U7DQo+Pj4+ICsg ICAgICAgICAgICAgICBjaGFyICoqdGV4dHM7DQo+Pj4+ICAgICAgICAgICAgICAgICAgY2hhciBj aGFuX3RleHRbNF07DQo+Pj4+DQo+Pj4+ICsgICAgICAgICAgICAgICBrY29udHJvbCA9IGRvYmot PmNvbnRyb2wua2NvbnRyb2w7DQo+Pj4+ICsgICAgICAgICAgICAgICBpZiAoIWtjb250cm9sKQ0K Pj4+PiArICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsNCj4+Pj4gKw0KPj4+PiArICAg ICAgICAgICAgICAgc2UgPSAoc3RydWN0IHNvY19lbnVtICopa2NvbnRyb2wtPnByaXZhdGVfdmFs dWU7DQo+Pj4+ICsgICAgIC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