From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Subject: Re: [PATCH v2] drm/panel: check failure cases in the probe func Date: Fri, 26 Jul 2019 14:33:53 +0200 Message-ID: <20190726123353.GA16964@ravnborg.org> References: <20190724185933.GE22640@ravnborg.org> <20190724195534.9303-1-navid.emamdoost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190724195534.9303-1-navid.emamdoost@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Navid Emamdoost Cc: secalert@redhat.com, David Airlie , kjlu@umn.edu, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding , smccaman@umn.edu, emamd001@umn.edu List-Id: dri-devel@lists.freedesktop.org Hi Navid. On Wed, Jul 24, 2019 at 02:55:34PM -0500, Navid Emamdoost wrote: > The following function calls may fail and return NULL, so the null check > is added. > of_graph_get_next_endpoint > of_graph_get_remote_port_parent > of_graph_get_remote_port > > Update: Thanks to Sam Ravnborg, for suggession on the use of goto to avoid > leaking endpoint. > > Signed-off-by: Navid Emamdoost Applied and pushed to drm-misc-next. Sam