提交 fd629294 编写于 作者: W Wei Yongjun 提交者: Dmitry Torokhov

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: 24d28e4f ("Input: synaptics-rmi4 - convert irq distribution to irq_domain")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NLyude Paul <lyude@redhat.com>
Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 24d28e4f
......@@ -1043,7 +1043,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data)
data);
if (!data->irqdomain) {
dev_err(&rmi_dev->dev, "Failed to create IRQ domain\n");
return PTR_ERR(data->irqdomain);
return -ENOMEM;
}
data->irq_count = irq_count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册