Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1506786ybl; Mon, 2 Dec 2019 04:32:52 -0800 (PST) X-Google-Smtp-Source: APXvYqymhD5myKDKWHsGPUeqoV2EHM2c/TcFF7JaZE4upaRbxs/APPFkFwvigwYYRU0yYBWqrLNR X-Received: by 2002:a2e:3e11:: with SMTP id l17mr7060658lja.45.1575289972798; Mon, 02 Dec 2019 04:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575289972; cv=none; d=google.com; s=arc-20160816; b=koStWVJ01xPr735+tChYndlL6RCg/wJTF2US4nWeJKlwgEf/qxTNDLyEW0xWItc1fh 9iNk/aTp2CXLzdeEetrTEB/UefJsr+Fpp573f5Ri3MaVsRffRzRzoKRUSAwvHqqeJ073 52ycIK4fV0rR5encLcd6Dy7UltncMWlzFrZrZzYc6R87j6kPRRlzt0oYJ9g0KGeDk/is agQFSOSSlXSXsbTu5vz/rjz/XXicR2crsLpKR/RwQIlmDAp6+lw9adA0xSlJZ1pn+qfg VOtvbOMOJgRm92IhY1s6gf8wdKuD9bMltt6t9Bzhr44VHt+xmWgZPx2KKuvFWxwhBboh Gd6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=z3SnZdXuFBN1jh51CXSp9/Zn69SERHbAnHWcUe/KxRU=; b=E1q7t04JVG0B+ZfufZSrjhdziuMmwvjyLusE9uCx4nrKiIvwiHkRvYMAjhyI46FlPs ErdMdUMPsrNLNomVORq+oaBecKrra8n1s6k6HgdlC6kZRl9fg7Ru2nroHZt+9M99c/VK 9pThDZ2sEpQhJKmGFauPwsGYu23+VUWsPlzIYMNEPPwIA67m2ecTn1msY1LZyLvZ9pjB AjTdP0JKMECq3rqpLLwVkDL8T2CAjlL/0VZeukgV+AEKnXb8JGb3znTjLAHD7ghMxdvL SVfPbPtJDQeArebQ32EteBmyYMnA4s8Xb67/DXbSjrxulCFzPMUwb2T2aF9Spc2T1hSM tMdA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si29590331ljo.109.2019.12.02.04.32.22; Mon, 02 Dec 2019 04:32:52 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbfLBMaG (ORCPT + 99 others); Mon, 2 Dec 2019 07:30:06 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:37382 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727362AbfLBMaG (ORCPT ); Mon, 2 Dec 2019 07:30:06 -0500 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1ibkpz-0000HJ-ES; Mon, 02 Dec 2019 13:29:59 +0100 To: Daode Huang Subject: Re: [PATCH] irqchip/stm32: Fix "WARNING: invalid free of =?UTF-8?Q?devm=5F=20allocated?= X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 02 Dec 2019 12:29:59 +0000 From: Marc Zyngier Cc: , , , , , , , In-Reply-To: <1574931880-168682-1-git-send-email-huangdaode@hisilicon.com> References: <1574931880-168682-1-git-send-email-huangdaode@hisilicon.com> Message-ID: <8acaa494701c91b8a8acd60a2390d810@www.loen.fr> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: huangdaode@hisilicon.com, tglx@linutronix.de, jason@lakedaemon.net, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, fabien.dessenne@st.com, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-11-28 09:04, Daode Huang wrote: > Since devm_ allocated data can be automaitcally released, it's no > need to free it apparently, just remove it. > > Fixes: cfbf9e497094 ("irqchip/stm32: Use a platform driver for > stm32mp1-exti device") > Signed-off-by: Daode Huang > --- > drivers/irqchip/irq-stm32-exti.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/irqchip/irq-stm32-exti.c > b/drivers/irqchip/irq-stm32-exti.c > index e00f2fa..46ec0af 100644 > --- a/drivers/irqchip/irq-stm32-exti.c > +++ b/drivers/irqchip/irq-stm32-exti.c > @@ -779,8 +779,6 @@ static int __init stm32_exti_init(const struct > stm32_exti_drv_data *drv_data, > irq_domain_remove(domain); > out_unmap: > iounmap(host_data->base); > - kfree(host_data->chips_data); > - kfree(host_data); > return ret; > } Applied, thanks. M. -- Jazz is not dead. It just smells funny...