From patchwork Mon Sep 11 09:00:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 112176 Delivered-To: patch@linaro.org Received: by 10.100.153.131 with SMTP id 3csp5469656pji; Mon, 11 Sep 2017 02:01:13 -0700 (PDT) X-Received: by 10.84.151.68 with SMTP id i62mr1730013pli.179.1505120473226; Mon, 11 Sep 2017 02:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505120473; cv=none; d=google.com; s=arc-20160816; b=mGKb71Zu8eXRX2Yh7m3doTBHrKJGJH4DKxX7+S/V+mR25Y6bTRSn/Lfzw27+KTM8xQ vhbV92lA95eiCjQ4wA5H45v6pru3AdnUAiD2nrRnK1p6ehLkOwp7cruSle3KJjO5czWs 8rbqh0BBJBprjUSc8r/GxPzKs2tg2WduL2lXvJ21kVricYpBjYDkCLxEuycWlcqAzDPs Akr3FGt3URj2ohmTtVfvW4D2PRgndtAm1oG5XTYGCJxxHynMQwjy33wMRSOaOkYM/nAX YApC2KqJnoj5WrmmcQcxbjtpMo+vy7yEJX0lx1yBdc/L0YO5HqktCBd8IJca+djEiTac io5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=86AiQkvAb4NLdajpeEhLn0PXP6ldiWMTuAwIKkzkLok=; b=f5liaSI3gbYDP0Ya8OBTdVXpJvQ9bMSPdIumdVhwXjzhln5QY0VYjQ+usFVlFKtSEH D6k08GRQWiB8YYWF7SCb2IGc2/jIT94zTAaJIcICke3v02FlGK92sDAxQDmy7JGj6dLs coTVhx9GFEUn9ijmGnM+eg8lbZZIZ6ZbstGgHbtwrtdMwd2nF8O9WgsDqe69pmzDtmP/ vHQqdJSAbNCvd6G9temcgOT7IsJAwki7IJJ1dkDi1RlSrkAuOYVtyUipQ4q9nDpKLEB4 TrLdflGOd6iz7DXi3T4swZjBJdltf9Umg7vWaXPPj6a3xR6eWz3HACmfLgxFB59b7xBX pSZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hgMnFN8u; 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 71si6610616plb.777.2017.09.11.02.01.12; Mon, 11 Sep 2017 02:01:13 -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=hgMnFN8u; 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 S1751431AbdIKJBL (ORCPT + 26 others); Mon, 11 Sep 2017 05:01:11 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:36802 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751310AbdIKJAa (ORCPT ); Mon, 11 Sep 2017 05:00:30 -0400 Received: by mail-io0-f169.google.com with SMTP id d16so21842252ioj.3 for ; Mon, 11 Sep 2017 02:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=86AiQkvAb4NLdajpeEhLn0PXP6ldiWMTuAwIKkzkLok=; b=hgMnFN8uGJO3yFh73uKH2RRWKIbE369Heymb2N8efh2dYtbDZhQANlBgU2ncQXCuGR tZTDk59sMaqz17KDSLXyVd4FtljAz0u0zNGCDNyap1khTVO+eAvmvT22kh/D7GkvnIIx Kwyj6DugaPGIa/bIUPTt+c2VHGN5Anz0clDwA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=86AiQkvAb4NLdajpeEhLn0PXP6ldiWMTuAwIKkzkLok=; b=M2nm0yCAX0RcBzk6Y/WDRdEWYjcbS5uavttzSIxBIeBOx4v0hbomssj2bh9/RhIKUP nd4z3xewX252SDtwogDmJUcY5oTkdlrzNxNYNINEWRwpYMgcfyrYXvhrlsnWVxovCjyt wDY/WCBmGsX2KBxLip7w5V2brGgx79R9o4QZ5Wc6wExInj/Nef5k7oNxG4V/KbaxyBYP otaYDYsxztct2HFE+0M5kZeZT7XSZqE4xklwT2ONoprkG6ddydX5yUKap0rbgj0VfhSF tSWSu3csZ4CZDbhFd9ep6GeSnxxpn/TVX9sGBwuYxAQJ2UT5DFqAIyJdzWvwqb3j2sVB MpVw== X-Gm-Message-State: AHPjjUjKTQZO8eVIHv2eWyi+STDI9KJHF55MEbg3NzPopwMQ4ICd5TzM YGmZw8BjvD2uWWAC X-Google-Smtp-Source: AOwi7QCu9u5HtoEAxainvBPJAxqLwNRexM/jZ2bJS5CSqGAIPc+M404BQkjF/6WJCgLvUrQ5PsmkcQ== X-Received: by 10.107.139.215 with SMTP id n206mr14277662iod.155.1505120430207; Mon, 11 Sep 2017 02:00:30 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id a189sm4344146itd.21.2017.09.11.02.00.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Sep 2017 02:00:29 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Srinivas Kandagatla Subject: [PATCH 2/4] nvmem: add missing of_node_put() in of_nvmem_cell_get() Date: Mon, 11 Sep 2017 11:00:12 +0200 Message-Id: <20170911090014.16806-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170911090014.16806-1-srinivas.kandagatla@linaro.org> References: <20170911090014.16806-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada of_get_next_parent() increments the refcount of the returned node. It should be put when done. Signed-off-by: Masahiro Yamada Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 3866117..d12e5de 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -789,6 +789,7 @@ struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, return ERR_PTR(-EINVAL); nvmem = __nvmem_device_get(nvmem_np, NULL, NULL); + of_node_put(nvmem_np); if (IS_ERR(nvmem)) return ERR_CAST(nvmem);