]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: ims-pcu - fix usb_free_coherent() size in ims_pcu_buffers_free()
authorThomas Fourier <fourier.thomas@gmail.com>
Fri, 22 May 2026 08:54:04 +0000 (10:54 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 22 May 2026 17:01:52 +0000 (10:01 -0700)
commitdab48a7e74e6a394f3aa0461a2b1fb0c7b38fcb8
tree71f3b9caa518dc55bb3c88440fb2db1b435630cf
parent16ca52bc209fa4bf9239cd9e5643e95533476b58
Input: ims-pcu - fix usb_free_coherent() size in ims_pcu_buffers_free()

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 <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20260522085412.45430-2-fourier.thomas@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ims-pcu.c