Message ID | 20201123121806.376312467@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1951661ilh; Mon, 23 Nov 2020 04:25:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVYE1CHmTkMgc/PdtktTdo2fDDQ09BM+zMkI6Fhkt1HafbivNDDVf97qX1Fccn7SpA5jbL X-Received: by 2002:aa7:d356:: with SMTP id m22mr46731172edr.270.1606134307994; Mon, 23 Nov 2020 04:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606134307; cv=none; d=google.com; s=arc-20160816; b=bprKuqFEb0X8OgwAS+lHsbbmE09dcLuV+WPKOXzB8yz7HwRV8Fcgrpg9eVeEv5t+zv DlqTnMZqlPdhen53NUHX9qCu00P8QNf93SnUXrSrnKRdwk7eE7Ut67SenNAN4zzdv+q/ RY7kbUi0ykN+Fw9DX68nkEWyZuVVckfAgAkiDAi3sAlbUOcwi8avOYfulC+gOcCfm7WK 5UV2uKNNHgLvCDjERAKLI2N6/TkE8yZrLRwWAfsemNOvRQEvKW8MgEb0yZ2QXDG0jmMf xlo1Rs11YZrZ5Kx1UGmvhtq97SibLux/EP6oH7blG3EEe/UAXAD8D/C0wqp2F1yAfAik 3gvw== 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=qRKF05B1sKAOmYr0sOoHOJYzMMwz/g/aciTc0Hof1BU=; b=aFiDfS0bl3d2UhtZ4Ru7qiITzlL2CZiHmB0HYDEVvqCPlHbfdxadSD4bHHtbqwDDc3 hYjx0Ygoit59mPZA0CPpmOjT7Tnj+Uyw0jzl4dVmXlOE9ghagmDUIY8ClRQspseh+u7S RWo6z8xIV97tkxU/3gy0Hk/trbxlxlx2E2y53cOkYaOM9fDvpS9N6CJLRv99KlRSrJW8 nZBnFKSM3JtEYAOf4A3KtjcYS/pFCpEb4HMVuHPwd4jnCWQ1a67HYLBvqr6WGBxsfmEq ASqVHcjLkO5zIdHeI3ReKNJ9K16ifWpgHcZNjPm7G2Z9frGYk+9ueDRytkSLd2yaT710 A8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y7DSXpnK; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si6564598edv.27.2020.11.23.04.25.07; Mon, 23 Nov 2020 04:25:07 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=Y7DSXpnK; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S1729877AbgKWMYs (ORCPT <rfc822;semen.protsenko@linaro.org> + 14 others); Mon, 23 Nov 2020 07:24:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:34410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729873AbgKWMYs (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 23 Nov 2020 07:24:48 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D13EB208C3; Mon, 23 Nov 2020 12:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134287; bh=BiAw6D5upIknAsiTBPJxn6Y4Z84CYEgSqf9Jodop7hg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y7DSXpnKp74UbBcz7TqPRpq21QSyB8ptrVrYrZTjo5JcO84LvLppPYPsQGgisjGf0 awFj35HTCizoUZG+r/Wvncl7GdWsLB/pvSb6QqUvpyii3IfTgfDL4CoeyIgg1QXwlg ySzrZPlLWipj6clY1FQkelf+Am49j+NqMJ4hvaA4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Joel Stanley <joel@jms.id.au>, Jakub Kicinski <kuba@kernel.org> Subject: [PATCH 4.9 17/47] net: ftgmac100: Fix crash when removing driver Date: Mon, 23 Nov 2020 13:22:03 +0100 Message-Id: <20201123121806.376312467@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.530891002@linuxfoundation.org> References: <20201123121805.530891002@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -1444,6 +1444,8 @@ static int ftgmac100_probe(struct platfo return 0; err_ncsi_dev: + if (priv->ndev) + ncsi_unregister_dev(priv->ndev); err_register_netdev: ftgmac100_destroy_mdio(netdev); err_setup_mdio: @@ -1465,6 +1467,8 @@ static int __exit ftgmac100_remove(struc netdev = platform_get_drvdata(pdev); priv = netdev_priv(netdev); + if (priv->ndev) + ncsi_unregister_dev(priv->ndev); unregister_netdev(netdev); ftgmac100_destroy_mdio(netdev);