From: Markus Elfring Date: Thu, 22 Sep 2016 07:29:23 +0000 (+0200) Subject: drm/tilcdc: Return directly after a failed kfree_table_init() in tilcdc_convert_slave... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf97ee19629363d5847a4af135cf415f76d7388c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Markus Elfring Signed-off-by: Jyri Sarha --- diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c b/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c index dd8de260c362..623a9140493c 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c @@ -207,7 +207,7 @@ static void __init tilcdc_convert_slave_node(void) int ret; if (kfree_table_init(&kft)) - goto out; + return; lcdc = of_find_matching_node(NULL, tilcdc_of_match); slave = of_find_matching_node(NULL, tilcdc_slave_of_match);