Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6551545ybc; Thu, 28 Nov 2019 01:11:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzFetPa8PQnp3s6pbIFpeRBy2TLauk9ykw1IMASFkHUboVpzVnAaz0w4jPVXM+do+xCgDL6 X-Received: by 2002:a50:ac7c:: with SMTP id w57mr37280244edc.155.1574932291895; Thu, 28 Nov 2019 01:11:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574932291; cv=none; d=google.com; s=arc-20160816; b=jv8V9iDJRx4/7K/E1/jWfkuflXLcXlJ6+f2BNolHYJkh9eTq1zTeQkhp+7rwdjDgWW CxpachNxeeUICORSbP+/sApdrJk7uvyz330pNJo/WjYAyh76Tl8BS4dodSFRXPynGgJ+ ope5ao5U0TkP4A/thrO5eBDQ6SnJq5oVfwtx4pXlcF0O3FMj0K8hFhhgFWhbg6L+ADso YVvPAbzqM9WJnTibAS5SrGUiuj70nfzzFdLTttSRR+tz/8rs5JAUS+LRXQrgvE+TU4wt jUzfk1rjADz6iY4x4wlOavb/ZVuFCsEnZrUNOi8Z4xGuYNqgweTRRJh0ud6FSs7+od6W AWCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=wLdZlw/9MvT7fp3D8U8e0OuIedhTdsfItQP/kIXsocE=; b=skm2dqDSWx6AK/tG+GeA56MJZJ4JykblTAWBurlkrUhblSLLn1mTn8ga2LFk3bcZvY vEWfUJ36uwzuChUIyIzIGKNPhqhHRnyuVuEark67NgGZjyLTjfXIW1g0jUPysjCu5yi0 pUaoeJe8GnH3h0GoRSRRkCWpQb3A2R2ZYi4zVVAaSj5gdKQQM0go86SOA08S+BsqR47C FzngZ/1jKy8VDd0u0kuXDOuEwN1tZOkHTOGWJVYcH+kLSwORWkGJ+2GHqyLW3EU6I+C+ taneYAzWLxtuob/WlNQpX2g7hMhrw9TPVb1yxg9u0iCASJQNoHGjG0BoyzzJTuC13g14 wN1Q== 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 x4si12684428edc.142.2019.11.28.01.11.08; Thu, 28 Nov 2019 01:11:31 -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 S1726773AbfK1JHx (ORCPT + 99 others); Thu, 28 Nov 2019 04:07:53 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:40788 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725789AbfK1JHx (ORCPT ); Thu, 28 Nov 2019 04:07:53 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 538A8517B63887E92DE5; Thu, 28 Nov 2019 17:07:51 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Thu, 28 Nov 2019 17:07:48 +0800 From: Daode Huang To: , , , , , CC: , , Subject: [PATCH] irqchip/stm32: Fix "WARNING: invalid free of devm_ allocated Date: Thu, 28 Nov 2019 17:04:40 +0800 Message-ID: <1574931880-168682-1-git-send-email-huangdaode@hisilicon.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.8.1