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 E1A004502F; Tue, 16 Jun 2026 17:25:49 +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=1781630750; cv=none; b=EeWS2fhSWWXfztPe3AAkVo2hT3sdj4H1+3sMc+H8JNyLkBViPumInxiSHBB6D7CO1C7bCcusC2OAh1WShYf7qAj5In9iMnOmNcQF7gJKeTJEMumrVhktoxECah/SA7gAXy3q+oAwwwJroa0IyXQOIyLzn4wpVgcQDNGfWVT78fk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781630750; c=relaxed/simple; bh=Dp7JtqENOIb/rKDj7tCZOiQKC415Ng9u5Cy1Wl9Et/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qzHSoG5AjUlc3nIp5H+Tb21HEoKdXFW7h0rC/2btOtCfxYikLGwmUIRQaCvLELEJ3QmWhxzdoeHeB3DZwFzEcyfglBkPH2rE7Rt4fPJLmHZ6xNs51HR4NH+g8l9wkRaTY+lgb81q4WXhwEQiEgVmDXox232IgPwy8En0XZ0kOLs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h8v3rJD2; 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="h8v3rJD2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E370F1F000E9; Tue, 16 Jun 2026 17:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781630749; bh=+wWlJbW/ymf7to7MXFBbvUlVyryqHro/xEUreDVOCIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=h8v3rJD28K4bzaTGkystk/cucfYlL4peqnfb9WxnFfnhPmtSI1X8v+bjEZKU1LW1m TPRckbWcrPI/CV6VXNNy9OtA9c2ZV1bLuHB9Q3IuhQMiiCf1KFl8W7u9ypBFouIAtr q6BXEAlRYu0NGNAxUCZ00z68lupPZ21dLz10aL2g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Fourier , Dmitry Torokhov Subject: [PATCH 6.1 089/522] Input: ims-pcu - fix usb_free_coherent() size in ims_pcu_buffers_free() Date: Tue, 16 Jun 2026 20:23:56 +0530 Message-ID: <20260616145130.039628274@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145125.307082728@linuxfoundation.org> References: <20260616145125.307082728@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 6.1-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 @@ -1598,7 +1598,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);