Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422756yba; Tue, 23 Apr 2019 03:37:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG7/7/A8uVTRongYTkuDZX9IIfOTlIEO8xC33XJaedgK3J7QepYZpWEajw2XK6hXMIbtWP X-Received: by 2002:a63:ef53:: with SMTP id c19mr307836pgk.120.1556015844219; Tue, 23 Apr 2019 03:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556015844; cv=none; d=google.com; s=arc-20160816; b=KhLoIHLtLH0e6bypUraIMFal1fH7TlQeyniJ3AOVLJEMdOUF70hCbHnHoPcjPvyuUp s3rqIHrIXS+MA/05ziXSdMDFMHay6Q+GgMrcUjz4zJHRUQrJ8o30Q0jGiUzT1a99crqU Z9Zkn1HcGrRzjsH1jrI9RdUbgghLFnWxbPv+3ejz9o9D9nfaoIBoiga/YYY9JpaFD+HG zKTBrCzP3jx7PynZI5Z0ik25YbmOQGKHRm0YMWbrIS+T0MhAMEMaKPDhN6MUbSvG+PJ/ eUeFDhQrC+iSDlO/ijeqQ9oGc7WowQgLZ+6PKPIC21t25ez4pZA801MZrupElKLjytMH mzaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Qm/layQEeNMZON1puf4iHr3x7Hf24MoU7f4K04cY4mo=; b=sYknUjHXB6pe64Ge3a1YOcntkebv+4eDfey8XYnfzDHbrlt+0c0kqr18UoDsRiH8AH JubtSJ/SQ1bg2IsDkTrh3+qgfJjSDR6T227d5r8BJsQEGJGMMAM930ukRVdSEeutE3eK K9/p3WB4NhAI1NLSoyuizIwYVbB/le6GfKZ5iDii+EqmGo82p9kAgC46M1Njohqg9yso YwxYf+7MAxk42JC/7OXmqq1mKd6K61j7DhogUJ/WAjO9sdlm1R2WML7hmYjVpY4v+p1y oyLKlf+XeZqS2Mj01d5QcUuXuDQuIUBwVa1XlDNIXjFIz33r/+JTl0tX5bGhLCr0qvIf Dt4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dGXluoZ8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si65712ply.204.2019.04.23.03.37.08; Tue, 23 Apr 2019 03:37:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dGXluoZ8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727317AbfDWKev (ORCPT + 99 others); Tue, 23 Apr 2019 06:34:51 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:39632 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfDWKeu (ORCPT ); Tue, 23 Apr 2019 06:34:50 -0400 Received: by mail-lf1-f67.google.com with SMTP id d12so11338123lfk.6 for ; Tue, 23 Apr 2019 03:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qm/layQEeNMZON1puf4iHr3x7Hf24MoU7f4K04cY4mo=; b=dGXluoZ8Y0po0bHsIoAYNRLARfjayexlOIYdVe64eoSQDZzm91h1ctzH7DtMMw3aIW 9dzUT1tiLq6V32i+D+9lUhH8G1wSnU4cUmK8ni7ylo2Q2RWbXeoqM4IncAVzwYBk/IcN B82V5eTWyvV4DIpXaakXk+/FB/PBZJMr9mvbk+BFF1umHlo8f5nUMJ5NPQPrf80C5MEn wZ2ZQ16L3dyUVXR1vMI0t9u0eSe0XBaBATGgpBwtE66Pa1Aj1ikYiiWB3DR+wrqEmJ+2 gfMTOTiSBwwEQ5MRtKCKQKuDYmZFYC7I0SgZ9gNp7Kf8k4QyPJQD3FOJs8ZPNttypOyX /4Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qm/layQEeNMZON1puf4iHr3x7Hf24MoU7f4K04cY4mo=; b=OHgTXPlo1SPTxILCj38uu+gLQpEyYNcsMW9FmtZHnpFLsSMBWj8mJyRpmbVXzLV5rt 3+FttPOA1SUueo8tYXNR2ZBq/H4WvW77wLXEXt5teYciR+JCKlByHUNo7hRqxSEpSkw+ Jji5HnbiwtSCkogS0w7F96zPayI7H44dOItjM5H3unKOvzx8DNw5Y+Jw51Tj9o8y2vNJ zn6B38EVPqR+9CK5j4eLWtcZoBEBq4X6RIBEtZUzXekN0P0JKFcr3gQaF+jCit+BFwCc rB/WI/TJ+NClMuuMfZSAud2cxiljHa9QX9V9X1eiMr3hWHFPfgJBfScxJZ1AHuNCNcNj z7qw== X-Gm-Message-State: APjAAAU0daMngCIOAdJRPsmRR4NbSj+09H94yFJXFYOMa4iB/G453WLV tTXQZk41RC/px3UdbYchdqqCZ5WbHMwqKDFibqi//Q== X-Received: by 2002:ac2:4647:: with SMTP id s7mr13098149lfo.168.1556015688504; Tue, 23 Apr 2019 03:34:48 -0700 (PDT) MIME-Version: 1.0 References: <1555048943-39589-1-git-send-email-wen.yang99@zte.com.cn> <1555048943-39589-2-git-send-email-wen.yang99@zte.com.cn> In-Reply-To: <1555048943-39589-2-git-send-email-wen.yang99@zte.com.cn> From: Linus Walleij Date: Tue, 23 Apr 2019 12:34:37 +0200 Message-ID: Subject: Re: [PATCH 1/5] pinctrl: pistachio: fix leaked of_node references To: Wen Yang Cc: "linux-kernel@vger.kernel.org" , wang.yi59@zte.com.cn, "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 12, 2019 at 8:01 AM Wen Yang wrote: > The call to of_get_child_by_name returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./drivers/pinctrl/pinctrl-pistachio.c:1422:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1360, but without a corresponding object release within this function. > > Signed-off-by: Wen Yang > Cc: Linus Walleij > Cc: linux-gpio@vger.kernel.org > Cc: linux-kernel@vger.kernel.org Patch applied. Yours, Linus Walleij