Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp98358yba; Thu, 11 Apr 2019 23:02:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwz+hie5b71FUt3JKqSw2zCLbuJuEpBuxF08Fde94EeKpRLPW9CiV0gfUmJgJz8YRf7LFN X-Received: by 2002:a17:902:6bc2:: with SMTP id m2mr31594158plt.194.1555048945010; Thu, 11 Apr 2019 23:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555048945; cv=none; d=google.com; s=arc-20160816; b=kwRCd41Xwon8rEGQikRleYpe1mfk/iMVp/nGT5IA8ysyGeR0WeQ1KIhGVwgl4F1WU+ NwVZxXvF8R5oU1cP5HfhhZlZ/41kO3FAgRFvYLdpudfuj0VeByCdsJiNDiqAtjBDOrcq steOY5SI51KExVL69AZSf9duJIOHCfAy1OXcepUDMZjqbVqi9FpoFW5hCBdyY394JHyb h0a2MqWozGXTyxgx0BVwZjU3+YOP3OMjg+kC/RRSmtOQLyCETN822Q/kZM10XC3YM1ni VRWW4E8RNprK2tBe5k0mBNbX93tI4hfebWUOjANYM3LIluHvnvQ5acCneEUx+xG7ofGA vi2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=KYI6hgti6f5+4XfOgtDCC1SHIKRjU2IHMUsBKuZj50s=; b=OQ+FZXotBrya3iND151AFIX57frgsmlvyAHJQDnI77DCIzeNPTEr2Q+DRpwGMZVTJf 5XT4aaNf9JQyM27OlUnhJHYnPrJkeWmjPAVCrxx0o/52Qey25mfq3rJKl1dIOJWIstp1 lbjMRTGWSS7s9G7QKIvdjFvuJW6S4UbsSm0VrFGiNEUXXGAds/VvAyDvauQncOo/qkNW 7s9bwrBVsrGThv1BCRAX+Heo/NepTv2kdXG5vf9ygw9950qzmcOkybpfhq/8fbn37t6P bTQV29kx1lJmDCSM2jF3zEVBL8I87yG2Nd3VFZo2i+r8k2l1JS9BbZ9iDtZvqMebg6UY bQnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si18050516pga.96.2019.04.11.23.02.08; Thu, 11 Apr 2019 23:02: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbfDLGBd (ORCPT + 99 others); Fri, 12 Apr 2019 02:01:33 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:50616 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbfDLGBc (ORCPT ); Fri, 12 Apr 2019 02:01:32 -0400 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 0566D3520A1160C651A5 for ; Fri, 12 Apr 2019 14:01:30 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x3C61OqL088807 for ; Fri, 12 Apr 2019 14:01:24 +0800 (GMT-8) (envelope-from wen.yang99@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2019041214020406-8432933 ; Fri, 12 Apr 2019 14:02:04 +0800 From: Wen Yang To: linux-kernel@vger.kernel.org Cc: wang.yi59@zte.com.cn, Wen Yang Subject: [PATCH 0/5] fix leaked of_node references in drivers/pinctrl Date: Fri, 12 Apr 2019 14:02:18 +0800 Message-Id: <1555048943-39589-1-git-send-email-wen.yang99@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2019-04-12 14:02:04, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-04-12 14:01:11, Serialize complete at 2019-04-12 14:01:11 X-MAIL: mse01.zte.com.cn x3C61OqL088807 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle... returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. We developed a coccinelle SmPL to detect drivers/pinctrl code and found some issues. This patch series fixes those issues. Wen Yang (5): pinctrl: pistachio: fix leaked of_node references pinctrl: rockchip: fix leaked of_node references pinctrl: st: fix leaked of_node references pinctrl: samsung: fix leaked of_node references pinctrl: zte: fix leaked of_node references drivers/pinctrl/pinctrl-pistachio.c | 2 ++ drivers/pinctrl/pinctrl-rockchip.c | 1 + drivers/pinctrl/pinctrl-st.c | 15 ++++++++++----- drivers/pinctrl/samsung/pinctrl-exynos-arm.c | 1 + drivers/pinctrl/zte/pinctrl-zx.c | 1 + 5 files changed, 15 insertions(+), 5 deletions(-) -- 2.9.5