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 79DCC1C5F27; Sun, 7 Jun 2026 10:27:13 +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=1780828034; cv=none; b=RPbVBvqueGjGH95KT+6G5cvuLeREGqYp3F1F1h63SS9Uo6ObVCgvXeA2W3hfHNxAoNYUJ03d704mJ62KWwPgzc/QAtY/222ky4V/cidLfd08Pa/GH3wNKdfNbEUPQkxCI9M457O4U+Q3y/KNf8eRGQc4QWgEi5ZIxJw91uSYvv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780828034; c=relaxed/simple; bh=HE4p7XIkRJRJ9Tsx1l+GRNPxCgg+hPKDzeOlmamTEeQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e6G2KT0SjlD1iB+3Ak8jOFZgJijMN1rS3ueIDzhyHa0z5PCGEhsWScE9hLC0C2+A2X2kpULZoSprd5Si2u/9ZKTtcCyxeE4slbke0HbpBoxkMmubA5LfeAvPW8H4jtIfQjqAoQYskjd4yXm9iaXvGWvaWqqA00ziLA0drFwolq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xKATg56y; 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="xKATg56y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6E0A1F00893; Sun, 7 Jun 2026 10:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780828033; bh=mthY6k26yxUDzLF33JdKxR0/Ne4yCnmPHwLp4d+oWAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=xKATg56yZzbAaomZMHg5ikgvGwIMKdYeXQJO6MgpEEbxm4A2y9inw4Y5efNYNdZRR cAhrrBsIeoCbA25sx7mWZpryMcNLPpujY8Y0HtykBO+0ufYh5SKQ1LxPs+RH5Xr/eH Z4q3wNjpA29Yq5nP/XuJhrmfQxI6PFhyeaBSTn24= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Fourier , Dmitry Torokhov Subject: [PATCH 7.0 131/332] Input: ims-pcu - fix usb_free_coherent() size in ims_pcu_buffers_free() Date: Sun, 7 Jun 2026 11:58:20 +0200 Message-ID: <20260607095732.913541494@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260607095728.031258202@linuxfoundation.org> References: <20260607095728.031258202@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Fourier commit dab48a7e74e6a394f3aa0461a2b1fb0c7b38fcb8 upstream. The input buffer size is pcu->max_in_size, but pcu->max_out_size is passed to usb_free_coherent(). Change size to match the allocation size. Fixes: 628329d52474 ("Input: add IMS Passenger Control Unit driver") Cc: stable@vger.kernel.org Signed-off-by: Thomas Fourier Link: https://patch.msgid.link/20260522085412.45430-2-fourier.thomas@gmail.com Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/misc/ims-pcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/misc/ims-pcu.c +++ b/drivers/input/misc/ims-pcu.c @@ -1604,7 +1604,7 @@ static void ims_pcu_buffers_free(struct usb_kill_urb(pcu->urb_in); usb_free_urb(pcu->urb_in); - usb_free_coherent(pcu->udev, pcu->max_out_size, + usb_free_coherent(pcu->udev, pcu->max_in_size, pcu->urb_in_buf, pcu->read_dma); kfree(pcu->urb_out_buf);