]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: synaptics-rmi4 - fix crash when DPM query is not supported
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Sep 2024 20:59:06 +0000 (13:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Sep 2024 22:01:11 +0000 (15:01 -0700)
commita790df272a20dcc88ffebe20eca34c54f528fcaa
tree77c3346eb139a349eb3c1719c8d36f1f62c99ab2
parent8f5ea12942ad60a0798fcb68995df8a23b8567b7
Input: synaptics-rmi4 - fix crash when DPM query is not supported

Stop clobbering "item" variable when checking if the device supports
querying DPM values because its original value is still needed in
case when we need to fall back to the old way of figuring sensor size.

Reported-by: Richard Acayan <mailingradian@gmail.com>
Tested-by: Richard Acayan <mailingradian@gmail.com>
Fixes: 14d650fcb7fb ("Input: synaptics-rmi4 - add support for querying DPM value (F12)")
Link: https://lore.kernel.org/r/ZtdQW7nqAOEJDNBN@radian
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f12.c