Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp774559iob; Wed, 18 May 2022 12:40:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqh7IUzewGGI4GpZMGgYu6IJffxrtZEEHQvKlEqnJW5T656E1PLShotzj3tq+EJ4af4DuM X-Received: by 2002:a17:902:e385:b0:161:823d:5309 with SMTP id g5-20020a170902e38500b00161823d5309mr1241125ple.62.1652902829983; Wed, 18 May 2022 12:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652902829; cv=none; d=google.com; s=arc-20160816; b=01HWiqDWgFLoOG0nLAc6Ldfo4UoWvS2yAtwbJF6oxftEdO2aA/Q+QEFW1NvOKlGZan MkQ8cWg6dGf+Cghe16MeNkny2fcL8uvS1+VY3JPfN8ODIuWcF6/Bsdq0EWEbwn8R4JcO afYvswW3wVBxZRhgSWCv3F+o4NereSZoguj3nHEmobDtOcjCoqY5feW/9QdyTeZcOLXz fzr7aSM2dj8ug8pEx9S6erCkgMWeNejEYph3GLFZxxuzG4eE/VOWIOitKtaKe6RUMuBX OMaWf/trhRcz7rTERWEZ/ovX2VPatlxy47znBUjn1GyWF/zBewEu8/IwhDWnIxCbBLJF wDUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pWihXAvvokb63lRHFBwEFtBM3oG0TOH/jy6GaWAKaNk=; b=KQBtKQXjPHDb9P84g7LkRNZSiJHSnLaOfa2hZi3DTL5waNJSHOfsI7nwhD94qynEBv 9v/cZ2feOpHcygYvVhJGCnn3U5mmlsDn/SsBz/N1ek+xCfnYWUssjWQ74fxHNqoPF3BU F7SgOX1BijRcpevhn2y+FR47Ir5Vx6/g+qmhpcej2bSakdmQly7xL/0p55RjQCUEAGKk tK7UkX4d8OTwJNG49WE5i96UpjCpVJeF58jyiebxF934gRu3TRMB1K0Fje3Ww1bD3L9r QhesW+wT2FdvybSVHZDiI2A9WVoj5z0ejXEiSvh7mdjIa8MwSJZdIkrO+vRaUtDk9PZd jlRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aangM02h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n13-20020a170903110d00b0015791a0f6f4si4042388plh.577.2022.05.18.12.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 12:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aangM02h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D00718DAF7; Wed, 18 May 2022 12:40:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242036AbiERTkR (ORCPT + 99 others); Wed, 18 May 2022 15:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242011AbiERTkP (ORCPT ); Wed, 18 May 2022 15:40:15 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5825820525F; Wed, 18 May 2022 12:40:14 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id q135so5422800ybg.10; Wed, 18 May 2022 12:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pWihXAvvokb63lRHFBwEFtBM3oG0TOH/jy6GaWAKaNk=; b=aangM02hOI6k4JUIXM7QyVITNJbqFw5uXNxGTYT0gErGGi/welG83qxKbo0oPRj950 R5KwuqLstFiYwkYxzIGo04fsYI+wmYSi5Mi4GuaPddmJiV8Z/DgFWBGn9v75fcx5njfH hluYFlJ6kcuEWfskMAhvfduXRv0XEAsAV9Jw6xJKOxioST7N9cmgGqLWTkO88JLyPbnd 2VALJ773Pd+oRnpZhhFxdcH9v3ZA6eQbxOTWhnDuj6tHQ+IhpXP1DgJiVrGWWZfSVeI8 BmQE3ZADjo4G7sPz7KTmA6yzttJNuG1hxy5VS7LVcy6qOvK7Ufp6RAwsRjL0zUYk9dn1 PAjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pWihXAvvokb63lRHFBwEFtBM3oG0TOH/jy6GaWAKaNk=; b=jD52MvIu/2RiLnHtUFaM0BEPOIWUVTtTrlpeWlSlkeqDw4I7vlDIIkZ9SFliZX2d+L 5NBmoFlQvYBNLS0chKWKQkW0TOIVUtMnAnsJucC8UEcW0ExHsQDH8PNmlmHdwItNdRSn /SVgnAIvnh8QEM1FAqLiyrxMA8xLX6kqPTzxccKex2MShCyfU1QGsRqzNafWQ68wefTf XDQO2ackI9urruZenaC1qPi/t2c8b+Mbmeg6y2p9LXAfakojm3hx6pSeDjCzA4FHymJw U8lAxIaVI/FqEDgOqMiX0q/cdnRoPb7ZS8eIzi9WfRtRpIQqrO9hWbFM00jULtihyGzo mO2Q== X-Gm-Message-State: AOAM530q+GF+7aCpxbif/FhpfhLhoSu7e/Ex/uBN2neiaXki1IdsEJI9 lvIo9d7IKP+MqrwNrgl1k8hkAEmdVKXo4jhn5Vw= X-Received: by 2002:a5b:246:0:b0:619:5651:3907 with SMTP id g6-20020a5b0246000000b0061956513907mr1211573ybp.190.1652902813551; Wed, 18 May 2022 12:40:13 -0700 (PDT) MIME-Version: 1.0 References: <20220511065548.3402408-1-yangyingliang@huawei.com> In-Reply-To: <20220511065548.3402408-1-yangyingliang@huawei.com> From: "Lad, Prabhakar" Date: Wed, 18 May 2022 20:39:47 +0100 Message-ID: Subject: Re: [PATCH] media: davinci: vpif: add missing of_node_put() in vpif_probe() To: Yang Yingliang Cc: LKML , linux-media , Mauro Carvalho Chehab Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2022 at 7:44 AM Yang Yingliang wrote: > > of_graph_get_next_endpoint() returns an 'endpoint' node pointer > with refcount incremented. The refcount should be decremented > before returning from vpif_probe(). > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > drivers/media/platform/ti/davinci/vpif.c | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Lad Prabhakar Cheers, Prabhakar > diff --git a/drivers/media/platform/ti/davinci/vpif.c b/drivers/media/platform/ti/davinci/vpif.c > index 97ef770266af..da27da4c165a 100644 > --- a/drivers/media/platform/ti/davinci/vpif.c > +++ b/drivers/media/platform/ti/davinci/vpif.c > @@ -469,6 +469,7 @@ static int vpif_probe(struct platform_device *pdev) > endpoint); > if (!endpoint) > return 0; > + of_node_put(endpoint); > > /* > * For DT platforms, manually create platform_devices for > -- > 2.25.1 >