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 66609437111 for ; Mon, 20 Jul 2026 15:51:07 +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=1784562668; cv=none; b=rFrMleDmuea9HMDDxlnFTTAPaHC6IBkCVIqGD8AXPjBs1/3QF2Tp5PIVhB2I/JNJfcgYKLum51JGwcNmg78PMMMQxSaLpacSRWSfmkqs+v5DZKYLm/0b3/txsPiNZo5gMTWX0ZOt3Oe/KdrYiPdAcJajDfImlo1v5ZK7hShw8B0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784562668; c=relaxed/simple; bh=U8XEWuQYqZe+kXtrIShen51rZleauUaEe9JJ9Pwfc1k=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=HRSAXYz+aG1SgHLQ5mtoZfWfQfcN1rnsWugyD9N3hvZwkoguQp6W5mc27eDscPXH4oKwyM6NTdWPn7U40gNUIpogViL0xfkiro8TL4uv1fr+NKofNJX0rf+gu+2UICNsB3Otq2/RlVQW0S/ZsaTVnws+96Kl67E+QaoPCjwwuaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pU9JCgMW; 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="pU9JCgMW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C09601F000E9; Mon, 20 Jul 2026 15:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784562667; bh=46DdZX4RRecQbhbKM1e00xqqgYiHfSRBvYI7k01AQvo=; h=Subject:To:Cc:From:Date; b=pU9JCgMWWy1+UWLNaBYXg7UCiA/TISfnfR65fYvP3gVZwG33NnJW+WYnxXgHBupCf sd0xMLtzsI3jYxyM2kuTVbW0eTD+LY5TDTOvYUm4FXaOpF1z2oLhGXmJjtxqLx8gi8 XyJxlmHByqP6LiaOZCbzUmlPbD8UadqR316XXrao= Subject: FAILED: patch "[PATCH] Input: ims-pcu - fix firmware leak in async update" failed to apply to 6.1-stable tree To: dmitry.torokhov@gmail.com,sashiko-bot@kernel.org Cc: From: Date: Mon, 20 Jul 2026 17:44:51 +0200 Message-ID: <2026072051-anymore-flashily-03a1@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 d48795b5cd6828d36b707e8d62fc9e5c90e004ab # git commit -s git send-email --to '' --in-reply-to '2026072051-anymore-flashily-03a1@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From d48795b5cd6828d36b707e8d62fc9e5c90e004ab Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Fri, 22 May 2026 10:25:31 -0700 Subject: [PATCH] Input: ims-pcu - fix firmware leak in async update The firmware object was not being released if validation failed. Use __free(firmware) to ensure the firmware is always released. Fixes: 628329d52474 ("Input: add IMS Passenger Control Unit driver") Cc: stable@vger.kernel.org Reported-by: Sashiko bot Assisted-by: Gemini:gemini-3.1-pro Signed-off-by: Dmitry Torokhov diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c index ea11368834a3..4f8265c0772f 100644 --- a/drivers/input/misc/ims-pcu.c +++ b/drivers/input/misc/ims-pcu.c @@ -935,9 +935,10 @@ static int ims_pcu_handle_firmware_update(struct ims_pcu *pcu, return retval; } -static void ims_pcu_process_async_firmware(const struct firmware *fw, +static void ims_pcu_process_async_firmware(const struct firmware *_fw, void *context) { + const struct firmware *fw __free(firmware) = _fw; struct ims_pcu *pcu = context; int error; @@ -957,8 +958,6 @@ static void ims_pcu_process_async_firmware(const struct firmware *fw, scoped_guard(mutex, &pcu->cmd_mutex) ims_pcu_handle_firmware_update(pcu, fw); - release_firmware(fw); - out: complete(&pcu->async_firmware_done); }