Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4801241imm; Tue, 26 Jun 2018 00:22:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexNXTJJH8VhgfsrWuy2hM7tUvBSncC+mqQUwbuCtqNHpG1hvNAdezjVTlWhbTy/DrbUtrU X-Received: by 2002:a62:1e81:: with SMTP id e123-v6mr397003pfe.188.1529997776168; Tue, 26 Jun 2018 00:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529997776; cv=none; d=google.com; s=arc-20160816; b=LXMmN+HWSZdiwwhnF1g21yUs7pCmvwDX6HYWN3Q8S8dhZLfF2xqhgq8S3Nq+zewc4C FCDspFngGcbmtHkG48unujsm9FTJ7whM3aM9iKlxr8cO+azvPYPt5PyrfWrHXA8yVGmq AEpyLu45lRJ4vVt5VsUm9fsR4gyiqhNYojvi4QOxZ0QcEevyJEp0It7xmw0Di3WraRui KBOLgs9nOj67izsGTGXkCL+9AfEG2/OjfCivbUjXJnJmy4R59AKIPl3k0Y7vLGG6K1+o YDS8LKt7bi5j2boClT9BpyUsENGDj9PT9pDZEeD1BowfDkNU7xCaMVAi0SnrC7rGSRyn RyIg== 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 :arc-authentication-results; bh=FM+c7xzAJagkjNlHIuVzq6WL8yj383HOWUsn9j+wao4=; b=O/cRJJpzEzigNE0YmoSgEpJeYh5CRwz4qoiWumWIUSTJolyt285/Am4+3ZcLcvb1G/ /oo6dLsJQ1kNpyTQHCRvHWwhndkS8U/wZTSKer6J7J01PCDLq984IKQRt7XH03wsRG3Q RQn3mIhQgP8p9PZb6U6HfRqmrbCmiSIfSgl0FR1NvgdH5P78+SQwN+B3N5us21qCNQ9E ZGsUhUv2qaKl2Blita5mjSN+aK0jRnIxb9NtraW/fXWB98XYwB+bLVPObuARN7Kev3/q jHEi7WIioGROxJMY148UpAYx90Me+GOmBS5p62ME9Fzi6HdIvL4By1UQiBEbEUiqM1Em 3jow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8C208mw; 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 j7-v6si915770pgt.147.2018.06.26.00.22.42; Tue, 26 Jun 2018 00:22:56 -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=H8C208mw; 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 S1752598AbeFZHWE (ORCPT + 99 others); Tue, 26 Jun 2018 03:22:04 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:42399 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752575AbeFZHV7 (ORCPT ); Tue, 26 Jun 2018 03:21:59 -0400 Received: by mail-io0-f196.google.com with SMTP id r24-v6so14972014ioh.9 for ; Tue, 26 Jun 2018 00:21:58 -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=FM+c7xzAJagkjNlHIuVzq6WL8yj383HOWUsn9j+wao4=; b=H8C208mwWz/8pzEIRF8CKW7B1CZgJPqQ+RdtHfu3+1nvMRPngeidyuSk02Zxcu8xrI hQuDLAZFg+sRq7Cqg57MlEW6tliZlspqhrGyzbLeLhwq3u7+NQR5isKLhCboNHhfxGMr TCR9Lmukyp7E+qBq+3I90A6iD/4AZ7Md1KrDM= 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=FM+c7xzAJagkjNlHIuVzq6WL8yj383HOWUsn9j+wao4=; b=hKeFml66qKXPAv8voZEUfcKqz6pqhBGctCq0AR+WEZW01YlepE1uWmvFSinj6AYU66 fllSL6/2tkbyJWFCcQ/O2Y1nHOIHmVOMrrlkFxW1ArnT1BVrSFFhAKYl0CpGROwLiyoG oMUSr+er5o+0Ud28ZcZnPxwOtpp1ijD7IWEV1vqKsg3YlNP/cokvXG359EwRHYW8CNS5 xgCmL2MjPfrKIK4pULTsvGwxfJpMZcqJ/+OXsFDrlc8wBScTA2QrpyQWSdondQep/B07 6jnNGDVeeCkyRwYPa+IV6zExbU8gtQaRtpZ5h6AYcfiDob9Fa573TUETGDmYmTqBFGCQ kxMQ== X-Gm-Message-State: APt69E1+jkbRiOLwh0uoXGfPDI17g1Yqsun8N8KPNYfH/GpJ+M3/WISI yD48bSDkUMTq00BxyezRJhsp4Ikp/0rL/FOCeCsBzA== X-Received: by 2002:a6b:4a15:: with SMTP id w21-v6mr243594iob.277.1529997718615; Tue, 26 Jun 2018 00:21:58 -0700 (PDT) MIME-Version: 1.0 References: <1529766899-1994-1-git-send-email-hofrat@osadl.org> In-Reply-To: <1529766899-1994-1-git-send-email-hofrat@osadl.org> From: Linus Walleij Date: Tue, 26 Jun 2018 09:21:46 +0200 Message-ID: Subject: Re: [PATCH] PCI: faraday: add missing of_node_put() To: Nicholas Mc Guire Cc: Lorenzo Pieralisi , Bjorn Helgaas , linux-pci , "linux-kernel@vger.kernel.org" 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 Sat, Jun 23, 2018 at 5:16 PM Nicholas Mc Guire wrote: > The call to of_get_next_child() returns a node pointer with refcount > incremented thus it must be explicitly decremented here in the error > path and after the last usage. > > Signed-off-by: Nicholas Mc Guire > Fixes: commit d3c68e0a7e34 ("PCI: faraday: Add Faraday Technology FTPCI100 PCI Host Bridge driver") Reviewed-by: Linus Walleij Yours, Linus Walleij