From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 154E7218ACA; Sat, 26 Jul 2025 20:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753563012; cv=none; b=EiP+aaV+chErWSEVs0vtdfBH3vLSI8F0P4m+RkmWqG+lz3lkf+o/gL5/t1R43wxZZIC8hG+pWDcj6QBEp7b2GBOJI6BtWV70MBqCm+0V5CPEPJSk5VWypdJWjEzPIOe3nkV+XfENgMFxQRrTVITQSkZHlu0RhFZqec3MJaNyIFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753563012; c=relaxed/simple; bh=lsogWYffGMntRuE0nmrEIvyEQKZCa4/Fg+UJfvetyUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ovM0jjx/f2vWFSzIN3oq/jH8JHCqM+qH+6W7DFI/3W2nawRMbk6uRkhweZgqNtOWV25qViLJnw3PJRVlpse4STXfq+fZMNTMGzhw9sGWraoUftPRjKyu7+3lLL/+D8T50Cos9M/FVcgQcoIQkdCKJKCYcG9Dg9sL4csypVRLx/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RJOyo9H7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RJOyo9H7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ADE0C4CEED; Sat, 26 Jul 2025 20:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753563011; bh=lsogWYffGMntRuE0nmrEIvyEQKZCa4/Fg+UJfvetyUM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RJOyo9H7C89NP4fsH1rvk2cO/eN9skZISwfzR9VxyRLcR9bx9rNR2//6MF4PPDn8/ ZZkKXN5d0fR7wd7JgTbYedOXP3zITscSfjYYLu4dHIO+AOruFBD1bu6Cpiw61XmEv5 Y9kjGEEkfwDwCEnhJUDDA+TwBqRYL4ZtYldeNWJqIWfnlI0Y8K22h8I1Jui9YZxdb1 NJwkVLwk2lvMz/SFVJYZN+nreSzFjduD5Q6m4iabIXFupLWWRx7SdOdi4VEo7qdnyt vo/epbx7ak5wOT57uIYftQxRhQlpmzHYwayGScoIUVO/T5BQykhnmCF5PR71wVngCe UzZ8yre9hVwyQ== Date: Sat, 26 Jul 2025 21:50:06 +0100 From: Simon Horman To: Johan Hovold Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Madalin Bucur , Claudiu Manoil , Vladimir Oltean , Wei Fang , Clark Wang , Felix Fietkau , Sean Wang , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , MD Danish Anwar , Roger Quadros , Richard Cochran , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 5/5] net: ti: icss-iep: fix device and OF node leaks at probe Message-ID: <20250726205006.GU1367887@horms.kernel.org> References: <20250725171213.880-1-johan@kernel.org> <20250725171213.880-6-johan@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250725171213.880-6-johan@kernel.org> On Fri, Jul 25, 2025 at 07:12:13PM +0200, Johan Hovold wrote: > Make sure to drop the references to the IEP OF node and device taken by > of_parse_phandle() and of_find_device_by_node() when looking up IEP > devices during probe. > > Drop the bogus additional reference taken on successful lookup so that > the device is released correctly by icss_iep_put(). > > Fixes: c1e0230eeaab ("net: ti: icss-iep: Add IEP driver") > Cc: stable@vger.kernel.org # 6.6 > Cc: Roger Quadros > Signed-off-by: Johan Hovold Reviewed-by: Simon Horman