From mboxrd@z Thu Jan 1 00:00:00 1970 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 C664E3C1087 for ; Sun, 4 Oct 2026 07:38:00 +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=1791099481; cv=none; b=A7ku85LoUWW61anOo0qjJlS+djfwgIoc41N04t4Rd6CfZ0f5JIK+y6ul3SkTN1wYJUMCokmRF3D1bCwG2aZ0P4rSyaBRDiUmyiO6DHaJWX5HFmA2lo02ZL23pNcO4UarZyVknSE23NsIvPU98M2VherTDwjx71iqEmzUuhp00Yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791099481; c=relaxed/simple; bh=T0RvWXbWXulvIfBHtdswxQ9uLz67Sz3mKafEauwycXI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=dSLbSPNbtah7r9rsoHUrVzcDeAQvnd8Y0GyvGIQzJcmB1vMKIyURT0bG5Orucp5f86P+to3OycwwAdQfENzVZmyAdF3K+psfHrwH/WnZhQ+J+xAgHL4069Hg4XJ77c9i6O1NpieiNea0QM+iop/Hm+HzK3METn5kbTrogY97lts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T9lzk4sh; 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="T9lzk4sh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD3E51F000FF; Sun, 4 Oct 2026 07:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791099480; bh=2NjWYwy6/bsZOXtmfH668e4duJv/8HJn5i+AYD83Pvw=; h=Subject:To:Cc:From:Date; b=T9lzk4shMw/AKNuQsqYSJ7AyYqzvnfSvCK9ATdjlbO/RXLKBmkDFM7m5gGVeLTpKT 4RExq6QWYj9lzeV4FgbnIxKz/PtBheoAmhzy3w+mQMzsPmXkMEYVKLDOpkgsKEuN+8 gn7Q1sm0ouyGq0LEAdrWT+jNMIrO0PnfSSsEdJ+8= Subject: FAILED: patch "[PATCH] wifi: wlcore: Fix runtime PM leak in wlcore_remove()" failed to apply to 5.10-stable tree To: vulab@iscas.ac.cn,johannes.berg@intel.com Cc: From: Date: Sun, 04 Oct 2026 09:37:47 +0200 Message-ID: <2026100447-glade-qualifier-5a63@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 5.10-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-5.10.y git checkout FETCH_HEAD git cherry-pick -x a8b8881d0c1aff544fae190469d86db7b07f43a9 # git commit -s git send-email --to '' --in-reply-to '2026100447-glade-qualifier-5a63@gregkh' --subject-prefix 'PATCH 5.10.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);