Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: synaptics-rmi4 - fix the error return code in rmi_probe_interrupts()

The error return code PTR_ERR(data->irqdomain) is always 0 since
data->irqdomain is equal to NULL in this error handling case.

Fixes: 24d28e4f1271 ("Input: synaptics-rmi4 - convert irq distribution to irq_domain")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Wei Yongjun and committed by
Dmitry Torokhov
fd629294 24d28e4f

+1 -1
+1 -1
drivers/input/rmi4/rmi_driver.c
··· 1043 1043 data); 1044 1044 if (!data->irqdomain) { 1045 1045 dev_err(&rmi_dev->dev, "Failed to create IRQ domain\n"); 1046 - return PTR_ERR(data->irqdomain); 1046 + return -ENOMEM; 1047 1047 } 1048 1048 1049 1049 data->irq_count = irq_count;