Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1587259ybl; Mon, 2 Dec 2019 05:37:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzQyN2JXFcXOZVqHDshrFEz2Y4Jxz9qRj3GylRNYx6R2xYUhkwLN/UPXPOMgg/w9anu3d4L X-Received: by 2002:a17:906:3ec4:: with SMTP id d4mr4108620ejj.173.1575293829160; Mon, 02 Dec 2019 05:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575293829; cv=none; d=google.com; s=arc-20160816; b=DguH64s2h3TocXaH5t8m2c48OF7vWeg7Fh1lkYsV2MhGU9unuBflY6JhmRsaQkg3dP Gsghknj80Y/sHN5D/kbZNpmg1QzDhjh9NfLPWoZ/H898a+halvKN0MxzsDoedAMjtVVR y8wl5Mj4eQZVAvkHkkZNV6ABU25CuWJGulG6zUSy4Bs5+Hqzlu3wJpv7tkgHq5XTy2Y0 Wn5eBwi5C0zhlTV8Qe7kO2pTuUfeAjyU1gHCExLkSGt9sDtwjVor7aYPIqaU4LNRnwql lEnJuRx1xGI9qCBYrO12wddrEgxf5/RNg7veFWpx1gtQJdicPjr6XEPCQQUFVy4sJ0wC rAjw== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=i64lHw+I0QHyNqj2G83KorktYoelEt8BKL93GF7bdB0=; b=mUqWSgcLYFxZ3kmK79ocXMghtwy3kLPfOYeTYo8KoIaax8ckcBwkVa8CJKwVwXKkQD yld2DYuvs8/GUuw7apYRRuwXUMMFnH8ZySQ3AZWClvg51ekN3xrPGLCp9aKi696HpTEr KS/U+OVptMnbvIoG7GM4Mc4vyHGagcHQx8G/lzVzpxAw2Q1bv4hk9uwLH/VBRQyx9o1T apBC++VFurrk9Hvu+TJJUleUFh+nq6GaTrVqh3GsUndgn0BDWVFeVvB6i+9cJR5wyIIB QnDvdJoGgFsRSx4PpeViaqJvTFIbEE2kPbKmePbSYZojnn8XaV31PgUUuGQ9lQ7R1/PE sNKg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si20669525eja.168.2019.12.02.05.36.36; Mon, 02 Dec 2019 05:37:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727471AbfLBNcr (ORCPT + 99 others); Mon, 2 Dec 2019 08:32:47 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:2099 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727401AbfLBNcq (ORCPT ); Mon, 2 Dec 2019 08:32:46 -0500 Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 9839ACB0AB60083E64B9; Mon, 2 Dec 2019 21:32:40 +0800 (CST) Received: from DGGEMM421-HUB.china.huawei.com (10.1.198.38) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Dec 2019 21:32:40 +0800 Received: from DGGEMM527-MBX.china.huawei.com ([169.254.6.63]) by dggemm421-hub.china.huawei.com ([10.1.198.38]) with mapi id 14.03.0439.000; Mon, 2 Dec 2019 21:32:37 +0800 From: huangdaode To: Fabien DESSENNE , Marc Zyngier CC: "jason@lakedaemon.net" , "linux-kernel@vger.kernel.org" , "mcoquelin.stm32@gmail.com" , "tglx@linutronix.de" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , Alexandre TORGUE Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0hdIGlycWNoaXAvc3RtMzI6IEZpeCAiV0FSTklORzog?= =?utf-8?Q?invalid_free_of_devm=5F_allocated?= Thread-Topic: [PATCH] irqchip/stm32: Fix "WARNING: invalid free of devm_ allocated Thread-Index: AQHVqRONo4g3fXJ0f0u7bwgldAUS36em11xw Date: Mon, 2 Dec 2019 13:32:36 +0000 Message-ID: References: <1574931880-168682-1-git-send-email-huangdaode@hisilicon.com> <8acaa494701c91b8a8acd60a2390d810@www.loen.fr> <028744c349410eb1f74b7e2b18590c75@www.loen.fr> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.61.13.197] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WWVzLCBJIHdlbnQgdGhyb3VnaCB0aGUgY29kZSwgZm91bmQgaXQncyBhIHdyb25nIHBhdGNoLCBz b3JyeSBmb3IgbWFraW5nIHRoZSBjb25mdXNpb24uIA0KDQpUaGFua3MuDQoNCi0tLS0t6YKu5Lu2 5Y6f5Lu2LS0tLS0NCuWPkeS7tuS6ujogRmFiaWVuIERFU1NFTk5FIFttYWlsdG86ZmFiaWVuLmRl c3Nlbm5lQHN0LmNvbV0gDQrlj5HpgIHml7bpl7Q6IDIwMTnlubQxMuaciDLml6UgMjE6MjINCuaU tuS7tuS6ujogTWFyYyBaeW5naWVyIDxtYXpAa2VybmVsLm9yZz47IGh1YW5nZGFvZGUgPGh1YW5n ZGFvZGVAaGlzaWxpY29uLmNvbT4NCuaKhOmAgTogamFzb25Ab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