Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp557512iog; Fri, 17 Jun 2022 08:37:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1pHV9v0Kg8cZtU6hYJxV0ujN7nIRIm4UX5oOz+u62Z561G5rIZrOrpI3qK55COBSct5TU X-Received: by 2002:a17:903:234e:b0:164:1668:3bc with SMTP id c14-20020a170903234e00b00164166803bcmr10151334plh.106.1655480233773; Fri, 17 Jun 2022 08:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655480233; cv=none; d=google.com; s=arc-20160816; b=adjc/Ml/l+Su+5siwtxfRdsnZ3MRgCaPMxYLSpdXUzCW3UxDQ2Pu4vn7z58DeGqm3O 0c7zWuyQ7UZiIQS7bSEB6G85KUBw5uXDlxr95e1DcGuN/ydAqpwq0zlxLH9kA9aCwZV9 qwm8QZN6fe8At3B1vKY2g6VYcd5q9YErXCNvMlWQll7iZuiGJZo9FVRvJK+M7UpjpXne wnKbgss1tRdbwTJJfIWtsCyZ0UuHfWK84U0E3/NqiNINX7F1gdwBXRYqGO65V2KZjpbs YxksXP5hb15dN6TimWYbCE4iL6jA00UDjjafpOoGvh1ZNVW72NG3YQn7os0R9xU6bdWi tnrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=f6HEuCKVMSmnOZq8lYGGYh3GpwNGRN2Gy7nkxAdvJ18=; b=cERccwGUqZrvE9/pAQvfQTLHeFzfPKBEysWugulGGgzRykFL7RmuDkqu91m5wybYei Dz+EeJB1CVXl9C54uo7niNNTsNRd9KWDqSPm4Kk0Lq4SpxHFW9JC1CuQj3Pa1w+T+rZW ORkYV1rAt3e86YF/+K+dYKflHPYHrabXAq3MiKLs07Uw4ZJ6JJzxGCwYBqc4SlSu7q63 7BtlbSDfh15+/UBt5szwmrbH//uK1b26ajZrzlVOaEJD0zHqPXK+NV4+xA8ubycwA1t8 kDu1fAyroiH5pnh5qLKj5DeT4nZJ0nxuqctQXttDrGrulzPQyvcan8I0xZarRBwTk11e 244w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a170903110500b00163f3e72aecsi5330912plh.318.2022.06.17.08.36.57; Fri, 17 Jun 2022 08:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383069AbiFQPPj (ORCPT + 99 others); Fri, 17 Jun 2022 11:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383088AbiFQPPh (ORCPT ); Fri, 17 Jun 2022 11:15:37 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 451683614A for ; Fri, 17 Jun 2022 08:15:36 -0700 (PDT) Received: (qmail 769005 invoked by uid 1000); 17 Jun 2022 11:15:35 -0400 Date: Fri, 17 Jun 2022 11:15:35 -0400 From: Alan Stern To: Liang He Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: host: ohci-ppc-of: Fix refcount leak bug Message-ID: References: <20220617034637.4003115-1-windhl@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220617034637.4003115-1-windhl@126.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 17, 2022 at 11:46:37AM +0800, Liang He wrote: > In ohci_hcd_ppc_of_probe(), of_find_compatible_node() will return > a node pointer with refcount incremented. We should use of_node_put() > when it is not used anymore. > > Signed-off-by: Liang He > --- Acked-by: Alan Stern This seems to be the last one; ehci-ppc-of.c was already fixed by an earlier patch. > drivers/usb/host/ohci-ppc-of.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/host/ohci-ppc-of.c b/drivers/usb/host/ohci-ppc-of.c > index 1960b8dfdba5..591f675cc930 100644 > --- a/drivers/usb/host/ohci-ppc-of.c > +++ b/drivers/usb/host/ohci-ppc-of.c > @@ -166,6 +166,7 @@ static int ohci_hcd_ppc_of_probe(struct platform_device *op) > release_mem_region(res.start, 0x4); > } else > pr_debug("%s: cannot get ehci offset from fdt\n", __FILE__); > + of_node_put(np); > } > > irq_dispose_mapping(irq); > -- > 2.25.1 >