]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - fix error return code in rmi_probe_interrupts()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 7 Feb 2017 18:00:37 +0000 (10:00 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Feb 2017 22:23:43 +0000 (14:23 -0800)
commit46570f8ad7477039148b7dcda68d910580f4fe7f
tree8983da37b39ff224aacff78196ac13cb43055f92
parentc03fdf9e81f4bd3d2e0f47d238f70b3fd4ae63f8
Input: synaptics-rmi4 - fix error return code in rmi_probe_interrupts()

Fix to return error code -ENOMEM from the devm_kzalloc() error handling
case instead of 0, as done elsewhere in this function.

Fixes: 749624b1b125 ("Input: synaptics-rmi4 - factor out functions
from probe")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_driver.c