Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp985286ybd; Wed, 26 Jun 2019 09:11:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJF6kCF6DG8ZOhEkFaxdlxhJhfkhRl26z+/tI5u18tnyNfxm5+G030SkIdswqz1V4QtmII X-Received: by 2002:a17:90a:bb8b:: with SMTP id v11mr5621820pjr.64.1561565482655; Wed, 26 Jun 2019 09:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561565482; cv=none; d=google.com; s=arc-20160816; b=RHLADPn/SBWDHKMh1Ol4IEGoTZizJwlm7J0Oemfe0WIFrAxT/nCFNoGYR7/1rD7Yby OL/IShoAyrE1olHODi8WgEgFlNgX4EFOP/7NwsukHx4yvaryWF5P5RAnsTF+DBQGszSx Eje+rJZyTFh2CcVLOWzG/rMZcOG4AFms3cRzZoFDCeOCmH0VW9Ecy2kAZdIeW/uwIukY /cmG3e2NxzvHsUhgyHgwikAeE0uQM+KGjW4gdYHb5o5Xqb9Ar4lKgrZVZ2Z9Y6HNPUEp ewHJiY+fGFMAc2D/s1Wut/s5Drv9vOYH7Uhf2+JY0xuGADJLfXHV73ns9d4qmnIGQEkL uFpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=bTl2It9W7ATvi4FoeQSyWZ+Q2Vj9sDefAzamBUrXvp0=; b=qpWwkKbv5CQzMZ1FdYM0N5wpDMyJgt+CyPT7j8Qv3AzIOVNhjfaTgDvdUUz+FNsaYW fgyUESPP12CKZ1nc1soKZV8tP0HibSVYN+WcCa21i+tN/T/CtoVJ1pmUlrZn2QyukceS 7BCwgFm9TItZ0y1rnJhCVd1i/9Yv7JwuvUSPLZhN7MVjJZ2ApociUorXLNOgSTMdDkm5 bV1iZuhBM8glbPaszMikuBTZA5vKLFTCD7y4CRKEJalAQ9y1jFKWhsGqTK2ZBtWiWNmV Z+kbHTHUuHDOaL2mw9duL9Fhy8FFt4EN46jatjmSgoxb+SKp7/uob4cmVWOFtsT2CYwM UHpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si2625542pgt.495.2019.06.26.09.11.05; Wed, 26 Jun 2019 09:11:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbfFZQK5 (ORCPT + 99 others); Wed, 26 Jun 2019 12:10:57 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:37236 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfFZQK5 (ORCPT ); Wed, 26 Jun 2019 12:10:57 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 79C12144FF0E7; Wed, 26 Jun 2019 09:10:56 -0700 (PDT) Date: Wed, 26 Jun 2019 09:10:55 -0700 (PDT) Message-Id: <20190626.091055.2250153974662071717.davem@davemloft.net> To: jonathanh@nvidia.com Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 1/2] net: stmmac: Fix possible deadlock when disabling EEE support From: David Miller In-Reply-To: <20190626102322.18821-1-jonathanh@nvidia.com> References: <20190626102322.18821-1-jonathanh@nvidia.com> X-Mailer: Mew version 6.8 on Emacs 26.1 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]); Wed, 26 Jun 2019 09:10:56 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter Date: Wed, 26 Jun 2019 11:23:21 +0100 > When stmmac_eee_init() is called to disable EEE support, then the timer > for EEE support is stopped and we return from the function. Prior to > stopping the timer, a mutex was acquired but in this case it is never > released and so could cause a deadlock. Fix this by releasing the mutex > prior to returning from stmmax_eee_init() when stopping the EEE timer. > > Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic") > Signed-off-by: Jon Hunter When targetting net-next for a set of changes, make this explicit and clear by saying "[PATCH net-next ...] ..." in your Subject lines in the future. Applied.