]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: synaptics-rmi4 - fail probing if memory allocation for "phys" fails
authorKunwu Chan <chentao@kylinos.cn>
Thu, 18 Jan 2024 19:37:59 +0000 (11:37 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:33 +0000 (13:07 +0200)
commiteafaec40d00fc38e143c0086aa306c6e6e3e3646
tree24fc50c65cd3cc735dc0fac0d71533c4ed7554a7
parentd6b2fe2db1d0927b2d7df5c763eba55d0e1def3c
Input: synaptics-rmi4 - fail probing if memory allocation for "phys" fails

[ Upstream commit bc4996184d56cfaf56d3811ac2680c8a0e2af56e ]

While input core can work with input->phys set to NULL userspace might
depend on it, so better fail probing if allocation fails. The system must
be in a pretty bad shape for it to happen anyway.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240117073124.143636-1-chentao@kylinos.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/rmi4/rmi_driver.c