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 3466CC7618A for ; Mon, 20 Mar 2023 12:08:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbjCTMIs (ORCPT ); Mon, 20 Mar 2023 08:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbjCTMIj (ORCPT ); Mon, 20 Mar 2023 08:08:39 -0400 Received: from 163.com (m12.mail.163.com [220.181.12.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2E0592659A; Mon, 20 Mar 2023 05:08:34 -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=any2LG+UghBJpBtb2ma/J/4il5qY3mBNhe3dnfW5z/Q=; b=d AcBBvPyUjhVgvrxySDNo1G2N7EEYCzSznCUb45LjeljfW7k0ruM4Yt+QaAHhTJDR ShWDEliV92Wk5kQ9Z5PKSWpL1V23wvX0WHBAIZ+Fe85O9ukGN5I9vDxGFrBFvQb8 WxaEQ4FP5iBKHy5ZPtvPwMByfO0pRn66FmXZWMJjNA= Received: from zyytlz.wz$163.com ( [111.206.145.21] ) by ajax-webmail-wmsvr91 (Coremail) ; Mon, 20 Mar 2023 20:07:52 +0800 (CST) X-Originating-IP: [111.206.145.21] Date: Mon, 20 Mar 2023 20:07:52 +0800 (CST) From: =?GBK?B?zfXV9w==?= To: "Nicolas Ferre" Cc: eugen.hristev@collabora.com, jic23@kernel.org, lars@metafoo.de, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hackerzheng666@gmail.com, 1395428693sheep@gmail.com, alex000young@gmail.com 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: <954acc8c-0df3-23a4-7237-ecbc31811a56@microchip.com> References: <20230310091239.1440279-1-zyytlz.wz@163.com> <954acc8c-0df3-23a4-7237-ecbc31811a56@microchip.com> X-NTES-SC: AL_QuycC/+au0gs5CGYbekXn0oRjuY8XsK3v/kl3YNXP5k0pir36yEsXkV8OHnYzuOSJyqciiKKcSJIxftbZ6pBVLiEa/JRVsfb8BpEatx+iClf Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <2220fb68.10ff7.186feeb3231.Coremail.zyytlz.wz@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: _____wDHza2YTBhkAocUAA--.24180W X-CM-SenderInfo: h2113zf2oz6qqrwthudrp/1tbiGhg4U1aEEohinAAAsf X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgoKCgoKCgoKCgoKCgoKCkF0IDIwMjMtMDMtMjAgMTY6MzU6MjQsICJOaWNvbGFzIEZlcnJlIiA8 bmljb2xhcy5mZXJyZUBtaWNyb2NoaXAuY29tPiB3cm90ZToKPk9uIDEwLzAzLzIwMjMgYXQgMTA6 MTIsIFpoZW5nIFdhbmcgd3JvdGU6Cj4+IEluIGF0OTFfYWRjX3Byb2JlLCAmc3QtPnRvdWNoX3N0 LndvcmtxIGlzIGJvdW5kIHdpdGgKPj4gYXQ5MV9hZGNfd29ya3FfaGFuZGxlci4gVGhlbiBpdCB3 aWxsIGJlIHN0YXJ0ZWQgYnkgaXJxCj4+IGhhbmRsZXIgYXQ5M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