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 AE70F437130 for ; Mon, 20 Jul 2026 15:51:12 +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=1784562673; cv=none; b=iwmeHr8/9XwqlWFJj4fUEOIp+7qjoA8aSb7G/WXu6xY06njWM1OLb4tXCqkJmjNDd7jY9p4smc3jYvDa6jmBfV5S4PVYLxDnOdho1l7OoRUtkSEmysgT+MjYfC26R3HBjigIJRiyHHr2Qc9RpIjIdp/Z479aBz20INhaIvH1Czs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784562673; c=relaxed/simple; bh=vm1L74X80VxQX4KeU1Ur7Hq2S4XnuC7d6B2YKu5/kCo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=St4R4I9hs2QDrnH0Kpov0MLHRexV3USzI+vdu89wABkDtD7t3KoVux/won0qyTSJb0dXsBP+P4wp3UPaa8EfelXyIyAWyaN580IGYxPXssMLem2yG2Cq5OUGz40G17hL10eHgeEjpWIjHa7bxsT+Si7pEzvvq+ex26typ3aIJcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VKPJDo/z; 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="VKPJDo/z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E4AB1F000E9; Mon, 20 Jul 2026 15:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784562672; bh=+WP1RuQxO7KoOQEBjxTue+yhhct7nDN6Ds2VmSVIf68=; h=Subject:To:Cc:From:Date; b=VKPJDo/zGJ7q6XgrNBJy9wyBg6whm2UT/mp8bs/0zp3PGbjbXbe5TadczWs31VgcC gnUhH2XrVHzyDIjqqt1M3Z/4BDP1byA0B4MFHo5Bsg6ezEwHZlmu8pFSnCR8ygxvwO Xr0ZPTGliWOuW0XiMyFAoAho4pldWRewQm4qfShA= Subject: FAILED: patch "[PATCH] Input: ims-pcu - fix firmware leak in async update" failed to apply to 6.6-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-scenic-thermal-f0df@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x d48795b5cd6828d36b707e8d62fc9e5c90e004ab # git commit -s git send-email --to '' --in-reply-to '2026072051-scenic-thermal-f0df@gregkh' --subject-prefix 'PATCH 6.6.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); }