Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4875595pxj; Wed, 12 May 2021 15:24:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpcroj4rmbbURwynwnMr37t8/ey4wVFVPsIW7hOwfY7iPPmBsUlFwlyogxLWwP5dT1yO5Z X-Received: by 2002:a50:ee85:: with SMTP id f5mr46918135edr.8.1620858270441; Wed, 12 May 2021 15:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620858270; cv=none; d=google.com; s=arc-20160816; b=uU0JwgOl6Pd9uxgKtdNJgsA7n+wOwRuU0IbyAKHpEh1X3LST15zosjKvVZI2ZrxAhx J+OD8sDMa9yMEIuMhLpM/OKzy41T268+0RH5Bm7HVsR1xr8LJ7+dNbWRnsl0WYAUgXM1 9CljD/e+ClJQPr/tdAQwuEAGXKOgOsdy9qsMiXkncdNbQr8kFIgU8VLXaBd/em+Z0iWb XnI0hPPPTHs2uSiQat7Ki6I0V6hAbGzk7VOWDWsWX4T6sCGj/AuJ70FFH72sDmz5xcq3 jPPqw19RgSr1Oj1j5Tad72Fbof0evnD9zW/tUR1lbxY4Em9DtXJ//Otmz4gXro2Sozp0 +5+w== 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:dkim-signature; bh=G4FRzr8UOcQ0mGjU/d41grqZ4PRaNx1y9G+DGXzduP4=; b=GZnI6vrJvfJ18JrpN+maqLcAhsf5iRrptbA8XaEr9wWId/ID1tKr3HeX7rrufpS3cI S27wxPeYlmdG6STeJXeFO9Rm6P9yPPDyepbfOPxzm8b779SPaIkeQCJacH5rNaGdg23p Ttftj1UzW5jCTzqbtJuCYnYCfEKa4Kq65r9JfhjPybG7uKLVoD/mr0sAm0EGJclGY3X/ J7e0jWNH3GttiQI9TuQzn9s+j0HD/eMnUUGJzxfW/S60MqQ8YsijyRgisi27C46BJB/h j15Q2jiuIIBo4/swVWMD2+nrPfogKdchiN6XmWxQSn2xE+bBmqO0YmhhjjUPolCZIbjG 9ShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=w8mAlBwZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si1097093ejf.699.2021.05.12.15.24.06; Wed, 12 May 2021 15:24:30 -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=fail header.i=@lunn.ch header.s=20171124 header.b=w8mAlBwZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443151AbhELWQk (ORCPT + 99 others); Wed, 12 May 2021 18:16:40 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:37818 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347157AbhELVpj (ORCPT ); Wed, 12 May 2021 17:45:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=G4FRzr8UOcQ0mGjU/d41grqZ4PRaNx1y9G+DGXzduP4=; b=w8mAlBwZh0NWwURiIt4ishGdXU O7l+wjTe0bacbb6zrO+Rmiv65PeFtAy55PfF4Dy/EJWGXvTZvjtIycewJujAM8gFuo1Q+cmPT69qe j/GThzI3gKXbsgY4tdN4Y3IoN3mM5aBNRIN15JjSZGgPvIbaE8ZyQxj11W8kikUGOzSg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lgweN-003yj3-3e; Wed, 12 May 2021 23:44:15 +0200 Date: Wed, 12 May 2021 23:44:15 +0200 From: Andrew Lunn To: Christophe JAILLET Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, david.daney@cavium.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] net: mdio: Fix a double free issue in the .remove function Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 12, 2021 at 11:35:38PM +0200, Christophe JAILLET wrote: > 'bus->mii_bus' have been allocated with 'devm_mdiobus_alloc_size()' in the > probe function. So it must not be freed explicitly or there will be a > double free. Hi Christophe [PATCH] net: mdio: Fix a double free issue in the .remove function Please indicate in the subject which mdio bus driver has a double free. Also, octeon_mdiobus_remove() appears to have the same problem. Andrew