Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp969159yba; Sun, 31 Mar 2019 18:39:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV0m94ICFX2HBqU4oNOxgWQe0UAuMDPzX4vS+Z1kzMGNjzxe/y2C9eDndnmH2MWNGaXYEp X-Received: by 2002:a65:624a:: with SMTP id q10mr31156957pgv.435.1554082758333; Sun, 31 Mar 2019 18:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554082758; cv=none; d=google.com; s=arc-20160816; b=U8GM1DO8XvAvzDQT60W0dCUprHVpqiXx7etkhR/lKg3IFxn2IE48eS1ug4Pj2UYJIV V523Ee3QjuPDLERHn28CSUQJCTVO1AcvuKofBaWBQVm3wpiV45W6XH2Rkqm8q2JJCrk9 39cVEFcAKE+U4SHn170Ve3E4S2NmgOW5HzbtdNNIfSA7iP6jZJeyfVz65Kq4w4rwWY7m 2Thj/jd8MXlkD6slSyy3HWeQoa9jjxFHFNlXgpOQ/BzR/cjKv+w7avzv67ftqf1eToQb 9j+kDVngWr0n/BdOIJ2qYxQ6NOonTZa3vXiVCysSo7TPAkzwYI7xBeV8AsIPZxbs7P9C oNlw== 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=xyr1fddb8p1z0IybBE5SwZC8Z8OPV1nu8cqS2ddEUh8=; b=v2009DahAB1cC/91lxUyuEP9cnMBLw0CqSgnpIp9oRIsBwoBlftYtUolDpuSDcnA53 LNnAyX7Z4i3hck7pyS1B6ESb5YdsJrrd+vdfTkcdhrWvW02zsFe5jfnaLB3XZZtFauta 9goL/rjbw8nnD0h28UFTgb1fIBjOVaZ6duHvkUIhztF7QMN24JHSfjkZ58MPC69QPQQM P8p8wYVMSHeF/eDyZJz5v0SeH0X4pxdaQuOvCPqAn/8KtcILGMtUWZ4Fn6osBYsYSqJl oniJIk6c6eg0CmHtCEfIClyBQFv8e5v2+UhoKKLcZF993/w4+fXfMJ5pbiYBSPiNZj7n BcRw== 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 j16si7386101pfa.197.2019.03.31.18.39.02; Sun, 31 Mar 2019 18:39:18 -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 S1731669AbfDABiU (ORCPT + 99 others); Sun, 31 Mar 2019 21:38:20 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:60976 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726893AbfDABiT (ORCPT ); Sun, 31 Mar 2019 21:38:19 -0400 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 65A1912390AF3130DA29 for ; Mon, 1 Apr 2019 09:38:17 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x311cAox061036 for ; Mon, 1 Apr 2019 09:38:10 +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 2019040109381391-7035240 ; Mon, 1 Apr 2019 09:38:13 +0800 From: Wen Yang To: linux-kernel@vger.kernel.org Cc: wang.yi59@zte.com.cn, Wen Yang Subject: [PATCH 0/7] fix possible object reference leaks in cpufreq Date: Mon, 1 Apr 2019 09:37:47 +0800 Message-Id: <1554082674-2049-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-01 09:38:14, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-04-01 09:38:10, Serialize complete at 2019-04-01 09:38:10 X-MAIL: mse01.zte.com.cn x311cAox061036 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. This patch series fix those possible object reference leaks in cpufreq. Wen Yang (7): cpufreq: ap806: fix possible object reference leak cpufreq: imx6q: fix possible object reference leak cpufreq: kirkwood: fix possible object reference leak cpufreq: maple: fix possible object reference leak cpufreq/pasemi: fix possible object reference leak cpufreq: pmac32: fix possible object reference leak cpufreq: ppc_cbe: fix possible object reference leak drivers/cpufreq/armada-8k-cpufreq.c | 1 + drivers/cpufreq/imx6q-cpufreq.c | 4 ++-- drivers/cpufreq/kirkwood-cpufreq.c | 19 +++++++++++-------- drivers/cpufreq/maple-cpufreq.c | 2 +- drivers/cpufreq/pasemi-cpufreq.c | 1 + drivers/cpufreq/pmac32-cpufreq.c | 2 ++ drivers/cpufreq/ppc_cbe_cpufreq.c | 1 + 7 files changed, 19 insertions(+), 11 deletions(-) -- 2.9.5