Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp639854pxv; Thu, 15 Jul 2021 12:11:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHS5Latme9MWp0wAqvKcCBEBSzffh2DNx/rjnIfrvmTS1FNsCNBR9QMEPCWnF0j0K+oWz3 X-Received: by 2002:a92:6e07:: with SMTP id j7mr3541845ilc.71.1626376306261; Thu, 15 Jul 2021 12:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376306; cv=none; d=google.com; s=arc-20160816; b=0m01iD3Bn/9q60tGuNdsHNQa6GFHrw5kuBPYk4ODlPBOng/msUzpo2bR2Q4B93Yc4e UrR5y9X5yqJtXmg/FLLCksj9iqp/10m0WA+EZvqTP5PAX+E6EJgusjcJdsLtUzwcR/hs qGvhXuRR5aAbSO7ZrRgB8rldYqPyzKWNuD3OgOgmsCKITt+4PlFFWn9WrEUBxagnCkjV 1tXd33DBSxsjr9dLTFdG0r7ojKc//bMsJhobMQDon8RQjb4UHM9+7NFnDNS333YmeJkU p0seSrJPxg+zv0TWtIWtmsSryGUPPGaqq1gID1r44pOJOqcz9SbiOU2+HfWrv55mWa7q PjOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GWBads2HNPg94Mdi8GcoCD4jCwD+FWrCdzHhvI8AJsc=; b=h77F4jKaHFhqu7hDt3V1U/046lEXx1dhkPZxHVbALPuLVhrG1fFOo8XBzLmGVXVTsq Xqp+vGywooGz0TDL2DR0wyO8lYwwuzlSU/u8jlVB6L5+qydD2ZNIrEo4901H4KFSlF6q uz/zF2tHLEVpMhNvaGwEV/Rje9j3ND0dfnQhofVif6lLnHoa3N6UJUi1IIFtCJfSrDcS 49zkaDrHvN2v4o83grzaUzzq9xFPni7wKVCNhYefmzaMuwyQgRV9HbZC8KVbl4Z9cTRe DF05f3JiNKcA/Bi8LYx51m662x+nsww8NiCNq29bRcf4RWYHce/PnrqGVAa5EOMHGdwf BBCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QTZmdzt7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si7170560ioq.34.2021.07.15.12.11.33; Thu, 15 Jul 2021 12:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QTZmdzt7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243073AbhGOTN0 (ORCPT + 99 others); Thu, 15 Jul 2021 15:13:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:38832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241663AbhGOTBL (ORCPT ); Thu, 15 Jul 2021 15:01:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 09830613DA; Thu, 15 Jul 2021 18:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375468; bh=UcI2nQ0dRPY6zF58aNhzWINc4a8QNy6Vta0vXQPrW2o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QTZmdzt74BKfTRG9PQ0JiKl9mPicggxN9npGdjs5tx/yMEWBNYlARz5qHVL0mEiqO 5CbZcd/7k06aI/5j2xwtS9TZdhci98w4PpdbIW/SDI/dcW7lu3m8pc2F7EvdpwkJm3 QkqkSE2+p+kINsNv8iHrgHevLJasDcoJV+UaPm4E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Yang Yingliang , Alex Elder , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 099/242] net: ipa: Add missing of_node_put() in ipa_firmware_load() Date: Thu, 15 Jul 2021 20:37:41 +0200 Message-Id: <20210715182610.491621107@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit b244163f2c45c12053cb0291c955f892e79ed8a9 ] This node pointer is returned by of_parse_phandle() with refcount incremented in this function. of_node_put() on it before exiting this function. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Acked-by: Alex Elder Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ipa/ipa_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index 97c1b55405cb..ba27bcde901e 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -679,6 +679,7 @@ static int ipa_firmware_load(struct device *dev) } ret = of_address_to_resource(node, 0, &res); + of_node_put(node); if (ret) { dev_err(dev, "error %d getting \"memory-region\" resource\n", ret); -- 2.30.2