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 093AB126C02; Thu, 3 Jul 2025 14:57:07 +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=1751554627; cv=none; b=NM3q0nseAprYlPOUYdM1Ol4W+Xx2hEutQimMDTPXBT05wgqOjmwQPnU4mFoOW/7uVKvTj8IKEhVd3rd6ZdBgb4pEKxgccwQplhkcOxVcTomfXyo2IAD+ABRIdxU48oS8wST/2ZvBEDrtl2nYHDIGnPaG8Fiik7aQTCuIPC74fEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751554627; c=relaxed/simple; bh=OnkTSpneecE1+XMWtfnR6xXTDSGAU75qEwyk5oNHy7E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MlABCPgDE4GmpCXRaBUoomdSUpXEv1VGgkR0ZHLaQJgcSrKxi9OZcNaJdAEx8tHe9UiDoonPxsn14gM9f3+C2ZzdewAmD8zaXjYb16BgNxRxk4VIDIErkWNIqPimF+OrT044N4DT+7R1Rxf21qzQNjJdpa0jT+V+O0GyrnmVR/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BvDz5Fub; 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="BvDz5Fub" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CFAEC4CEE3; Thu, 3 Jul 2025 14:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751554626; bh=OnkTSpneecE1+XMWtfnR6xXTDSGAU75qEwyk5oNHy7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BvDz5FubzCzkgG35ERjErjUcqL6GCQNpXiB4kJ6bZTdPPkRJvzpyZ/YT8mAe4B4lT il6hqHAECyTojRoUDd8X7zExJD2E9Wk6MZwc33fGhsLZXSOFJ7VXKCFGYq1tueREJO MY1XU46Pk/Udia9ytxlCwnS4Uv1+Cqvjd4PZh+jU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Lee Jones , Sasha Levin Subject: [PATCH 6.15 008/263] mfd: max77541: Fix wakeup source leaks on device unbind Date: Thu, 3 Jul 2025 16:38:48 +0200 Message-ID: <20250703144004.626928011@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250703144004.276210867@linuxfoundation.org> References: <20250703144004.276210867@linuxfoundation.org> User-Agent: quilt/0.68 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 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski [ Upstream commit 6c7115cdf6440e1e2f15e21efe92e2b757940627 ] Device can be unbound, so driver must also release memory for the wakeup source. Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20250406-mfd-device-wakekup-leak-v1-4-318e14bdba0a@linaro.org Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/max77541.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77541.c b/drivers/mfd/max77541.c index d77c31c86e435..f91b4f5373ce9 100644 --- a/drivers/mfd/max77541.c +++ b/drivers/mfd/max77541.c @@ -152,7 +152,7 @@ static int max77541_pmic_setup(struct device *dev) if (ret) return dev_err_probe(dev, ret, "Failed to initialize IRQ\n"); - ret = device_init_wakeup(dev, true); + ret = devm_device_init_wakeup(dev); if (ret) return dev_err_probe(dev, ret, "Unable to init wakeup\n"); -- 2.39.5