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 006ED435ED2 for ; Mon, 20 Jul 2026 15:51:10 +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=1784562671; cv=none; b=ucSXeTOLbQz0FakSx2x6A+0ViyRMbaXnlhmG4xXwghUkkqHEDpKhImPjq1zMmf0ZRw7YRlh/tZ8s61h69ZjBNYLmLwcIpQuc29aio12HJ0b+Z0Ut7PQpZ96mAf2WP3yaGGaTbB1nlEJFKTmshC7she/8aG66t2GhQDLDG3Me3QA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784562671; c=relaxed/simple; bh=KIrJB2gllGRZc7/rg1bN+KmAjvEgf9e9pxomXfl7z5w=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=fIcLsdsWI4K77BcO4Z6tWpJIxRrXgUpewTZfpeREGqM7h9dujTk7m7s63Iq+TuhVcraqpZKRPcu9NmX5W3gHl7CAMuXJGPPggtFvPPl5hvUqZqF64YLBTlR5eHfMOVLH6Q2BEl5NYo+0qjXFTYLAZXR4QjhLGSF5qpysU8P2wyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iZgr4oq/; 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="iZgr4oq/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 667B01F000E9; Mon, 20 Jul 2026 15:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784562669; bh=IoyUS7pjjMhjl++qHlR4IGQ3QHX7plI3nzB1CzApubQ=; h=Subject:To:Cc:From:Date; b=iZgr4oq/K5yqeWFDZ+KCJ2qGxL8mrLnbsigOxOUDx+zs7jLae06qBJgGxaUrwF58K glFNQ1K8eLW1wBmazJ2O7YPJ1vyPpbzpQA3tNBViqb6N+GybGX1p8TDy6YCln0h4ci J8dMGmt5Mo8j0UVkc1YgOdRYLmxNK7a92mdGHpnY= Subject: FAILED: patch "[PATCH] Input: ims-pcu - fix firmware leak in async update" failed to apply to 5.15-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-gong-sweep-0821@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.15-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.15.y git checkout FETCH_HEAD git cherry-pick -x d48795b5cd6828d36b707e8d62fc9e5c90e004ab # git commit -s git send-email --to '' --in-reply-to '2026072051-gong-sweep-0821@gregkh' --subject-prefix 'PATCH 5.15.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); }