Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1250229imu; Mon, 5 Nov 2018 16:59:27 -0800 (PST) X-Google-Smtp-Source: AJdET5fmhqVc2eFxQBdVGFYQnP7TtcFjn9GGH4Sr6/K81MUw13Q8jEitQhPYc9BH62B5XIoVs7KX X-Received: by 2002:a65:51c6:: with SMTP id i6-v6mr21628307pgq.227.1541465967717; Mon, 05 Nov 2018 16:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541465967; cv=none; d=google.com; s=arc-20160816; b=uykQvXfNX3QUawvlN06OEafNiMGX2FyDoLrb7fjiGfvSu4YPNc3JI1Ioe1cmi5EnWg tuBG9aO6cCmBRylbZYuecolFiMon0VtkQ/7SJIPxo+xEJWI/YOF9Aug274yzBDyWkzC5 HAWVMWmJJY+tz+Kwcb13Aekhf2r3ZG8dnCyo1+sL3xCWX2/6ZG2ILUKmlGN6OsWRQs87 GAYxjodl6g6gq2Q2BC9zNBslUBYjRcEzpo+9cj4lydg9+l+Pp/NvK5FS0dOiPPA7vGnK q95EpxEVS66bFPztKV49d/AyTp7QRhTXNYBLrC769iFMX7MogWbcUYZ5BrAFGGJnSyfa 7kOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=PQQ0l0ZGFotQ0wJOfx86UsrDO5mQdsDQUw2Ig/YGdyI=; b=LraSh3F7kApsApfJ0zWNAj2Q3rFmGUkGqs8+UacXU+8o+F2He74Mp8qRbXZwcqjsX7 grIlUA3E72eTT2zrvbImqkwv9fLMM1skj6nwXDIpKa7+r/32IXAixpfs4wEYHwtYwfRL wC5k6i8pkvkG/b3X2XGdGC46twDAKvEmJVrgywHwHEjcXfCyZrOnLNKSlTmilNNbfdxG knoCBgPXdcmB/Yg7Py/5Jfq0gBMh/z0+nJj0Z8sBVf6B4+xr0vpigmRanDg/eP90QC+0 fEgQTFQU7nav/L6NVVJSyRWlimFlJq2su13nbHaptoKcoHIC9CvTl2X6yOT4NVxX3GDX 0ujQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d4-v6si10850477pla.2.2018.11.05.16.59.09; Mon, 05 Nov 2018 16:59:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726790AbeKFKVP (ORCPT + 99 others); Tue, 6 Nov 2018 05:21:15 -0500 Received: from mga14.intel.com ([192.55.52.115]:16753 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbeKFKVO (ORCPT ); Tue, 6 Nov 2018 05:21:14 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Nov 2018 16:58:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,469,1534834800"; d="scan'208";a="88831271" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 05 Nov 2018 16:58:42 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 5 Nov 2018 16:58:32 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 5 Nov 2018 16:58:32 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.117]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.161]) with mapi id 14.03.0415.000; Tue, 6 Nov 2018 08:58:30 +0800 From: "He, Bo" To: Pierre-Louis Bossart , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" CC: "liam.r.girdwood@linux.intel.com" , "perex@perex.cz" , "tiwai@suse.com" , "Singh, Guneshwor O" , "Periyasamy, SriramX" , "Kale, Sanyog R" , "Kesapragada, Pardha Saradhi" , "kuninori.morimoto.gx@renesas.com" , "Ughreja, Rakesh A" , "Prakash, Divya1" , "Diwakar, Praveen" , "Zhang, Yanmin" Subject: RE: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API Thread-Topic: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API Thread-Index: AdR02etIVOQjufWdR9C3OioDFWN13wADD24AACFeYoA= Date: Tue, 6 Nov 2018 00:58:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWVjNzAwZmMtNDg0MS00ZjU0LWE5MmItZjc3NjlkZWM2NTNjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUnFkUGZyMnU0SUxLd1hNNjhwVjVaZkZzRVNSZk1CN25uRzJJUlVoaWhIamE4QVcyWU1sbENSS2hwaVVpYmR3TSJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIA0KCUkgc3VibWl0IHRoZSBwYXRjaCBiYXNlZCBvbiB0YWcgdjQuMTkuDQoNCi0tLS0tT3Jp Z2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBQaWVycmUtTG91aXMgQm9zc2FydCA8cGllcnJlLWxv dWlzLmJvc3NhcnRAbGludXguaW50ZWwuY29tPiANClNlbnQ6IFR1ZXNkYXksIE5vdmVtYmVyIDYs IDIwMTggMTowMiBBTQ0KVG86IEhlLCBCbyA8Ym8uaGVAaW50ZWwuY29tPjsgYWxzYS1kZXZlbEBh bHNhLXByb2plY3Qub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnDQpDYzogbGlhbS5y LmdpcmR3b29kQGxpbnV4LmludGVsLmNvbTsgcGVyZXhAcGVyZXguY3o7IHRpd2FpQHN1c2UuY29t OyBTaW5naCwgR3VuZXNod29yIE8gPGd1bmVzaHdvci5vLnNpbmdoQGludGVsLmNvbT47IFBlcml5 YXNhbXksIFNyaXJhbVggPHNyaXJhbXgucGVyaXlhc2FteUBpbnRlbC5jb20+OyBLYWxlLCBTYW55 b2cgUiA8c2FueW9nLnIua2FsZUBpbnRlbC5jb20+OyBLZXNhcHJhZ2FkYSwgUGFyZGhhIFNhcmFk aGkgPHBhcmRoYS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