]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - fix video buffer size
authorLucas Stach <l.stach@pengutronix.de>
Mon, 4 Nov 2019 23:58:34 +0000 (15:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Nov 2019 00:11:47 +0000 (16:11 -0800)
commitbb59d0f9243572aba285271a7a5e1f2bbf57f830
tree5db7d1c66ba5023d5b05c7985857bd07fe511023
parent4a2901f579ba87cc6d7a8e7ee8eb5f9e63f5b07e
Input: synaptics-rmi4 - fix video buffer size

The video buffer used by the queue is a vb2_v4l2_buffer, not a plain
vb2_buffer. Using the wrong type causes the allocation of the buffer
storage to be too small, causing a out of bounds write when
__init_vb2_v4l2_buffer initializes the buffer.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Fixes: a732f396767a ("[media] Input: synaptics-rmi4 - add support for F54 diagnostics")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191104114454.10500-1-l.stach@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f54.c