]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: ims-pcu - fix DMA mapping violation in line setup
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 22 May 2026 17:30:44 +0000 (10:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 7 Jun 2026 04:05:16 +0000 (21:05 -0700)
commit8adf4289d945e8990e4336436a97da71d21d2cae
tree079c3c7c93dbf2d9bd6d347969909990f9f36822
parent403b0a6970b1084bb27907c0f8225801fdd0fe1d
Input: ims-pcu - fix DMA mapping violation in line setup

In ims_pcu_line_setup(), the driver uses pcu->cmd_buf as a transfer
buffer for usb_control_msg(). However, pcu->cmd_buf is embedded in the
struct ims_pcu allocation, which violates DMA mapping rules regarding
cacheline alignment.

Use a heap-allocated buffer for the line coding data instead.

Fixes: 628329d52474 ("Input: add IMS Passenger Control Unit driver")
Cc: stable@vger.kernel.org
Reported-by: Sashiko bot <sashiko-bot@kernel.org>
Assisted-by: Gemini:gemini-3.1-pro
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ims-pcu.c