Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8B8F13B47DD for ; Sun, 4 Oct 2026 07:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791099478; cv=none; b=t6L6XwtvEood7NcEJloNApjbEp7uCV/0FCMBCXJSYgoA9oVqgGQsHfw6bpm83wY5C0e8grYeaBAtDT6c2Y3AdN2yEbHxxfZze+xlDAWdo0vaNnUvjAiiBl1qPN4YxRFAqWUZ2BiyS/kvDIIH7QCxn7XlRhmkaP0C13UsZgGGEy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791099478; c=relaxed/simple; bh=xnrUHFmZm9Wnpw7QTIqG2uRrG3v1oMJh2tLa/BwIXcw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=shYyY8Nlc9vM5vpFtL+7hzqv9YZbiqeV13rocLHz9Z+3ulycki7GS8T2eTxoAp9brdpcrJrlMcw67peUzBkHiodv58L+YFlgUJSihNZQEQcWzQW/EUCBIUjrhmkpU75B7tOL/MY9+alTMbgqn7ldLaTuQ1/E3ly8YEtlyG1o1hM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ApUBDx1C; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ApUBDx1C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6AD61F000FF; Sun, 4 Oct 2026 07:37:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791099477; bh=DpK62qj35cHgtFCSPAaHuQMWNDdiCQ4GW68GKT4Crl8=; h=Subject:To:Cc:From:Date; b=ApUBDx1Cbeg8eKYgDERdn17GCSyYnm9hL88OzJikavM9k0xosN41wJFhIb6Tj/V0G rz/JaSaSfT2bo2mpFy0jpdVcPp8dF1a1DDmxNS11+x5QfrB17AcIpGbdX07wF9/0CD +wFprZmEF1fVQ8Jmvf0MFulycfkgTeiz4T4LsNB8= Subject: FAILED: patch "[PATCH] wifi: wlcore: Fix runtime PM leak in wlcore_remove()" failed to apply to 6.1-stable tree To: vulab@iscas.ac.cn,johannes.berg@intel.com Cc: From: Date: Sun, 04 Oct 2026 09:37:46 +0200 Message-ID: <2026100446-celtic-uplifting-ac0e@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x a8b8881d0c1aff544fae190469d86db7b07f43a9 # git commit -s git send-email --to '' --in-reply-to '2026100446-celtic-uplifting-ac0e@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From a8b8881d0c1aff544fae190469d86db7b07f43a9 Mon Sep 17 00:00:00 2001 From: Wentao Liang Date: Thu, 17 Sep 2026 12:23:25 +0000 Subject: [PATCH] wifi: wlcore: Fix runtime PM leak in wlcore_remove() pm_runtime_get_sync() keeps the runtime PM usage counter elevated even when it returns an error, so the reference taken at the beginning of wlcore_remove() has to be dropped on every exit path. When the device was not initialized the function returned early without doing so, leaking the reference. Release it with pm_runtime_put_noidle() as done on the other early error paths of this driver. Fixes: fa2648a34e73f ("wlcore: Add support for runtime PM") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang Link: https://patch.msgid.link/20260917122325.2150910-1-vulab@iscas.ac.cn Signed-off-by: Johannes Berg diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index edf6ca23c6c3..26aabf4ea127 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -6809,8 +6809,10 @@ void wlcore_remove(struct platform_device *pdev) if (pdev_data->family && pdev_data->family->nvs_name) wait_for_completion(&wl->nvs_loading_complete); - if (!wl->initialized) + if (!wl->initialized) { + pm_runtime_put_noidle(wl->dev); return; + } if (wl->wakeirq >= 0) { dev_pm_clear_wake_irq(wl->dev);