Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932521AbcCJVVG (ORCPT ); Thu, 10 Mar 2016 16:21:06 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:51569 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932216AbcCJVVE (ORCPT ); Thu, 10 Mar 2016 16:21:04 -0500 Date: Thu, 10 Mar 2016 16:21:01 -0500 (EST) Message-Id: <20160310.162101.2164001740647971703.davem@davemloft.net> To: narmstrong@baylibre.com Cc: f.fainelli@gmail.com, andrew@lunn.ch, rmk+kernel@arm.linux.org.uk, pavel.nakonechny@skitlab.ru, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: dsa: Fix cleanup resources upon module removal From: David Miller In-Reply-To: <1457429780-7665-1-git-send-email-narmstrong@baylibre.com> References: <20151207.163608.1805578623951785262.davem@davemloft.net> <1457429780-7665-1-git-send-email-narmstrong@baylibre.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 10 Mar 2016 13:21:03 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 747 Lines: 22 From: Neil Armstrong Date: Tue, 8 Mar 2016 10:36:20 +0100 > The initial commit badly merged into the dsa_resume method instead > of the dsa_remove_dst method. > As consequence, the dst->master_netdev->dsa_ptr is not set to NULL on > removal and re-bind of the dsa device fails with error -17. > > Fixes: b0dc635d923c ("net: dsa: cleanup resources upon module removal ") > Signed-off-by: Neil Armstrong > --- > net/dsa/dsa.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > David, Florian, Andrew, > > This fix is quite urgent since it breaks all the removal cleanup. Since 'net' is closed, I've applied this to 'net-next' and queue it up for -stable. Thanks.