提交 cf97ee19 编写于 作者: M Markus Elfring 提交者: Jyri Sarha

drm/tilcdc: Return directly after a failed kfree_table_init() in tilcdc_convert_slave_node()

Return directly after a memory allocation failed in this function
at the beginning.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NJyri Sarha <jsarha@ti.com>
上级 34355ee0
...@@ -207,7 +207,7 @@ static void __init tilcdc_convert_slave_node(void) ...@@ -207,7 +207,7 @@ static void __init tilcdc_convert_slave_node(void)
int ret; int ret;
if (kfree_table_init(&kft)) if (kfree_table_init(&kft))
goto out; return;
lcdc = of_find_matching_node(NULL, tilcdc_of_match); lcdc = of_find_matching_node(NULL, tilcdc_of_match);
slave = of_find_matching_node(NULL, tilcdc_slave_of_match); slave = of_find_matching_node(NULL, tilcdc_slave_of_match);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册