From patchwork Thu Sep 22 08:32:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9345457 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1071560757 for ; Thu, 22 Sep 2016 14:55:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 006A62AAF3 for ; Thu, 22 Sep 2016 14:55:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3C3A2AB45; Thu, 22 Sep 2016 14:55:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 927932AAF3 for ; Thu, 22 Sep 2016 14:55:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 089F16E866; Thu, 22 Sep 2016 14:55:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11CC56E866 for ; Thu, 22 Sep 2016 14:55:52 +0000 (UTC) Received: from [192.168.1.2] ([77.182.99.72]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MDSxB-1bldRu3RG9-00GrIy; Thu, 22 Sep 2016 10:32:43 +0200 Subject: [PATCH 2/4] GPU-DRM-TILCDC: Return directly after a failed kfree_table_init() in tilcdc_convert_slave_node() To: dri-devel@lists.freedesktop.org, David Airlie , Jyri Sarha , Tomi Valkeinen References: <566ABCD9.1060404@users.sourceforge.net> <2f3f7ad7-16a0-1dfb-d073-0d993cd767ee@users.sourceforge.net> From: SF Markus Elfring Message-ID: Date: Thu, 22 Sep 2016 10:32:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <2f3f7ad7-16a0-1dfb-d073-0d993cd767ee@users.sourceforge.net> X-Provags-ID: V03:K0:6N4U5Pvf6VMPh29m1RAyukduMvdrGr78HDuoKCTIybWGCErOZ9J TFUcUxzmXqOziM7bcWw0VncTQ/VA12YT4g8mUeu8j9DXhK9KjH61cmwKEBVWtbxRx2OioEG NfDp3xuX+nSkKEbDMSUwESsrxkJ8wsL83xBmwpfkaA7I8WTeljQboZVIS3IMCi60mtuqda5 k7xxZqV0yL6D+Zqy3USbA== X-UI-Out-Filterresults: notjunk:1; V01:K0:dLoKCIEL8vE=:eFHfV6NpgqR4o9GEYEMpQU MIwMCCDeQ6nhcsjuglJYcbrxGyWmn0aXmar4a5dWqkzLncA8VcurEIrzW8zTXroDgBTO66aLD YZw+66aZ9z8yio5LLFqegzB77Oo1cjvY/KLwZalbpFyjVdBe18yOAfji9RR4Qm1tO/4l5Wh6I yKJbj3GAUM92LF3UMgTyuqSTTB8Gz6W5hla+7mL4Xxdhm4ymn+u5b6Rq22/kulx1aAZA7Ylrj W8custuKEqGMIZAAU2BvlXxj2RC2Gma3sLQXej7ShXL4xKf8SqWds7e7QvFLok2lTAlX5XfQU 0E/HYXz7KWblWCyfvSMsk+TuBaeCpzcGbLIcYiiXXKSmVCHKyEpHSM8Ycc5MKS6lY+WyJ3uzE wBB34OWD7ELbn8t7Ix7jcv3x6dmHDWtF+ak4RhwI4RWtivsCTEi2KlS8DA3VdM0XfEqI3CStA LPLc8XSQNCfr1zI2fNojv9iK1ICE5Br6JePgNtD20e/Y7p5ZIQvSOJODdrDI7tUxc9i/aJRju f1dbpESYdVaDAk3ISQo/0ZdYodmTfH4o07ngw8w+yRA6ix8uoBUX6MchLWnzHhv6xBseh4Jr4 Yr01p2TJ5gmYUBcqVhZsSocLeUZEidQeViLNcpb+RxxZx2PYYoY4jZwE/Ks3pbL77XccyDi4V C61etzLXPTDjr+jYc9AytFhwIh3CsRKx8NzugmPUO0TCLXieQQ3JjJJNaj7kPgzIo2ONMOt9x VHEs+uqiWl9NPJ+PvIezyBYoC+cpEG3Dx1zHDDDO/ApaGq71CI2pmYydS0GJZxffA5NpYcq+X QMclFEY Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 22 Sep 2016 09:29:23 +0200 Return directly after a memory allocation failed in this function at the beginning. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c b/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c index 8faa28f..6204405 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c @@ -206,7 +206,7 @@ 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);