From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6CF64C61DA3 for ; Fri, 24 Feb 2023 13:10:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WyRJpZGJxxUrNYTlDZ2A2+1t4K2mxPf7sUILPcpxmU8=; b=nPvxo2SgDxP3ND f2cC87LCyKMl3Dr3r+kn5sjE/tqiAJVLb+Uj3SZ7fSIpVJL5NEWG2U6ctl+vOjuIYE+a4KDvA8ioj bwcnSqH4hLpMQTgrmDAbpQrcyk8Dtpq+9agCNnGuF+09g6bMhNe1XY8VnRn+wUDVSIM+5D4N5ObG1 QSpJakaICrZuAikNbEGc/qe/ZdlPju1qKLWi0irHCo0mjicrniRMmxqJvdyAZbrWtoD8gSkJ2iAmL qa9XACD3LanJvZmEU3r+oO2YXDVGoM6RLzeZSi4kduqXmqmpb4jvDJeVi5In2nq8Zgk5n3tAo3uaf xy857KbM0nLNzdrmAxOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVXp1-002YRQ-BY; Fri, 24 Feb 2023 13:09:11 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVXov-002YNm-Jk for linux-arm-kernel@lists.infradead.org; Fri, 24 Feb 2023 13:09:07 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6A5B8B81C76; Fri, 24 Feb 2023 13:09:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 250C1C433EF; Fri, 24 Feb 2023 13:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677244142; bh=DfKPie46ReFTjEqKAjEGsOkois9sxNN565pWyn1gjA0=; h=From:To:Cc:Subject:Date:From; b=NdhT66enU/WN9qIxplXDOGrIkHaR1cQOlinSCM7P438D9UH1sULVuRNNrAiEUnmdw TxOHXnW6shXJo1N/JVlanoHk9qRY/7ZYDfdVl70nXT2S5AmsIXAPP25R0/q/RTaQr5 LWHmUKJwT0pcBqwmstkQ5x/FaXQZLnGkuNUK+dOB2qNSWYHgBSLHWUmaBkbrRQ2A1R iut7SaxW6bhp0epE5wLUgEXw6HUZZ5GeRIMVHw2IBzT6svmhgSBMmlOZZbkMFWhm+J G4tfzzAUXzYwdMAtQoXEOgebjD0OtORud0HIoQTzLyO16zGbbE8IKmA0UfcQubyfUw cJUFAcFSq1Ypg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pVXp3-0007Hb-Fm; Fri, 24 Feb 2023 14:09:13 +0100 From: Johan Hovold To: Ludovic Desroches , Linus Walleij Subject: [PATCH] pinctrl: at91-pio4: fix domain name assignment Date: Fri, 24 Feb 2023 14:08:28 +0100 Message-Id: <20230224130828.27985-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230224_050905_843370_C555407A X-CRM114-Status: GOOD ( 13.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Marc Zyngier , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Johan Hovold , Thomas Gleixner , Claudiu Beznea , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since commit d59f6617eef0 ("genirq: Allow fwnode to carry name information only") an IRQ domain is always given a name during allocation (e.g. used for the debugfs entry). Drop the no longer valid name assignment, which would lead to an attempt to free a string constant when removing the domain on late probe failures (e.g. probe deferral). Fixes: d59f6617eef0 ("genirq: Allow fwnode to carry name information only") Cc: stable@vger.kernel.org # 4.13 Signed-off-by: Johan Hovold --- drivers/pinctrl/pinctrl-at91-pio4.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 39b233f73e13..d699588677a5 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -1206,7 +1206,6 @@ static int atmel_pinctrl_probe(struct platform_device *pdev) dev_err(dev, "can't add the irq domain\n"); return -ENODEV; } - atmel_pioctrl->irq_domain->name = "atmel gpio"; for (i = 0; i < atmel_pioctrl->npins; i++) { int irq = irq_create_mapping(atmel_pioctrl->irq_domain, i); -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel