From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EF0526AC1; Sun, 1 Sep 2024 17:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725210511; cv=none; b=Lmfow8AYOxZ8gHdPxDQ6GS1xF8dElQwGnYkY7LxnK+38BlYlKHlELGIWi3GqQ6QXbvtJJqFYAox2ocpUVtGgl623Xba4cr4VyN4Yd6/OliRZUvtww1MRBDdVNPIXEGJbLvF+e6du0tYOVPFhauB9kW1B+lZQV22Okhptkj5ik0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725210511; c=relaxed/simple; bh=yxAqCiXNNdq2iwjWUfSSEii474ZMqfKS55aGPcfNhU4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IZQnREsC0pa5FoWHr2FqRV7/FKQ1kEX9oXS6unh1N4GWEW+iA/Qr+LDNETio06POiCLqFKfyyjNvNE7iUrO4n7f6L+8B22BqxBzeL6A57geadsPLUi3fuw0d+tx7W5z6uplsIDqVJP/oAie1izmSBUf0xoCAXi2GDHe+p+CfcjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wg/oMXy0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wg/oMXy0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E463C4CEC3; Sun, 1 Sep 2024 17:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725210511; bh=yxAqCiXNNdq2iwjWUfSSEii474ZMqfKS55aGPcfNhU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wg/oMXy05tHT5YipqRiL8zXZblHYSsxVyUfR8RJmxF4+Funfy372JpSBDZWCBuC8J c2PQBx7pSyhrFZkPzxN+iYCl31hdYtzlshjQ9j2JcdBwWpu3hsmvoFbJx6vKWiNGvG KIG9MeSnqtMEv/wRbdZMnBiRuUNV+8di1jLkNdsA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thinh Nguyen , Krzysztof Kozlowski , Radhey Shyam Pandey Subject: [PATCH 5.15 204/215] usb: dwc3: omap: add missing depopulate in probe error path Date: Sun, 1 Sep 2024 18:18:36 +0200 Message-ID: <20240901160831.064686869@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240901160823.230213148@linuxfoundation.org> References: <20240901160823.230213148@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski commit 2aa765a43817ec8add990f83c8e54a9a5d87aa9c upstream. Depopulate device in probe error paths to fix leak of children resources. Fixes: ee249b455494 ("usb: dwc3: omap: remove IRQ_NOAUTOEN used with shared irq") Cc: stable@vger.kernel.org Acked-by: Thinh Nguyen Signed-off-by: Krzysztof Kozlowski Reviewed-by: Radhey Shyam Pandey Link: https://lore.kernel.org/r/20240816075409.23080-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/dwc3-omap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -522,11 +522,13 @@ static int dwc3_omap_probe(struct platfo if (ret) { dev_err(dev, "failed to request IRQ #%d --> %d\n", omap->irq, ret); - goto err1; + goto err2; } dwc3_omap_enable_irqs(omap); return 0; +err2: + of_platform_depopulate(dev); err1: pm_runtime_put_sync(dev); pm_runtime_disable(dev);