Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4FFBC6FD1D for ; Mon, 20 Mar 2023 03:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjCTD66 (ORCPT ); Sun, 19 Mar 2023 23:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjCTD6y (ORCPT ); Sun, 19 Mar 2023 23:58:54 -0400 Received: from 163.com (m12.mail.163.com [220.181.12.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46DCA1F4A8; Sun, 19 Mar 2023 20:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Content-Type:MIME-Version: Message-ID; bh=ghRA+C90vX1ZYTuZtFlOH1voPfmpFTzjKY619ZT9nyM=; b=f Bs7EogveCzgDJJbsiYMiQQkcJNMCxVkhGEA6jBb3wk66yVdLEUqCzAVjl3k2gnvO VwegpPadYo6rFLSnOUaks9Bciw9EkETgJJaQt6YPrGvfh1151iCu3pCZbQPN56ZT Gc8YC3eftUa+7DNGjQtTBpib+94MG3PB9LR019Lz/c= Received: from zyytlz.wz$163.com ( [111.206.145.21] ) by ajax-webmail-wmsvr12 (Coremail) ; Mon, 20 Mar 2023 11:41:27 +0800 (CST) X-Originating-IP: [111.206.145.21] Date: Mon, 20 Mar 2023 11:41:27 +0800 (CST) From: =?GBK?B?zfXV9w==?= To: "Lars-Peter Clausen" Cc: "Jonathan Cameron" , eugen.hristev@collabora.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re:Re: [PATCH] iio: at91-sama5d2_adc: Fix use after free bug in at91_adc_remove due to race condition X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20230109(dcb5de15) Copyright (c) 2002-2023 www.mailtech.cn 163com In-Reply-To: References: <20230310091239.1440279-1-zyytlz.wz@163.com> <20230318173913.19e8a1b1@jic23-huawei> X-NTES-SC: AL_QuycC/6TvE4j4SKdY+kXn0oRjuY8XsK3v/kl3YNXP5k0vynH/gsFYl9FHVb32ci2LieikDinXz9i2/5fbZt4RoRXKQgTdqlQirHsSO4ZsvUW Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <2fdfc137.4e1c.186fd1b8f5a.Coremail.zyytlz.wz@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: _____wD3qRTn1Rdk1GYSAA--.867W X-CM-SenderInfo: h2113zf2oz6qqrwthudrp/1tbiXQs3U1WBo93sHAACsq X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgoKCgoKCgoKCgoKCgoKCkF0IDIwMjMtMDMtMTkgMDA6MzY6MDQsICJMYXJzLVBldGVyIENsYXVz ZW4iIDxsYXJzQG1ldGFmb28uZGU+IHdyb3RlOgo+T24gMy8xOC8yMyAxMDozOSwgSm9uYXRoYW4g Q2FtZXJvbiB3cm90ZToKPj4gT24gRnJpLCAxMCBNYXIgMjAyMyAxNzoxMjozOSArMDgwMAo+PiBa aGVuZyBXYW5nIDx6eXl0bHoud3pAMTYzLmNvbT4gd3JvdGU6Cj4+Cj4+PiBJbiBhdDkxX2FkY19w cm9iZSwgJnN0LT50b3VjaF9zdC53b3JrcSBpcyBib3VuZCB3aXRoCj4+PiBhdDkxX2FkY193b3Jr cV9oYW5kbGVyLiBUaGVuIGl0IHdpbGwgYmUgc3RhcnRlZCBieSBpcnEK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