Received: by 10.192.165.148 with SMTP id m20csp347672imm; Thu, 3 May 2018 22:01:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoSRQvTDR9gfpup2z76xSnaip0ikriVVaCb5PfKUvVWGmhAe/DsJEdEiD56J/flDUmaxPMY X-Received: by 2002:a63:6d8a:: with SMTP id i132-v6mr21677328pgc.314.1525410095294; Thu, 03 May 2018 22:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525410095; cv=none; d=google.com; s=arc-20160816; b=tqkFk0yeoIafgJJgnwRIk5djSMsPdlddda3rm4gfTfm3/DrgeHy13tUC3fqFHnvffJ Y0GMaWGJoHpWSOvCvQNfVGmnq1C0ZRj0gs9w58y4F/ArYszzifpGvOhbxmuRtYuUBLoe Oyyz3QmtVdvHtBPnr3WJCpRdVM+eiq8jPSxCOZX8Ad/3jUT2znf9g/5m2b3SKqj7Eq30 yO7vEACvq2Yqf4q79Dzfq7zAswrJbPg9McKRksY4SYBJxUt0V6kRvYosqCJGBDEvPzBm kBUIMObtbYwQJSvQfoQO4WX+LyXC/gnRTrPEWt1QCKdVLWkFj+tJne/jD1/JFE7LPf5y ENxQ== 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 :user-agent:references:in-reply-to:message-id:cc:subject:date:to :from:arc-authentication-results; bh=uVV+9cNzizMepDbBczDVtIuIP5VvyOf0G/GjnQdlgXM=; b=eSw3QLSUOlXT3IRKhjFBDoXmc2l6gvvmIVRhsAyW5v69GDk0xaDeRW+IZpTNLtIBPU WSdXM+bMAU0m2SfILy28mHaCfagRFXPUlnTsKX8dXs3I7ErkodQLqZHbtfgqNN1gMGZN ljWa+IyLtIs/5XMwTcUoIRmvWR5J2NHbVYZlXX6u83xroJ7l0p9fXJWDCnbiIgrVzXJn 71Vcqt5HnMs/SL8gnCn/07qle6wQm6HKWuVeMW+5jbmqjRpGQAgbik/9GaLaluyz9nA3 Bjjt7aUh/kMEDhkf4I3rCMDGnc+O4ZYSYEgUMKtduUSmBpfCAYeyRx2YQPGh9HW/+7YL 9miQ== 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 s14-v6si12328720pgf.263.2018.05.03.22.01.20; Thu, 03 May 2018 22:01:35 -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 S1751343AbeEDFAy (ORCPT + 99 others); Fri, 4 May 2018 01:00:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:48331 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbeEDFAw (ORCPT ); Fri, 4 May 2018 01:00:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 29D13ABE9; Fri, 4 May 2018 05:00:51 +0000 (UTC) From: NeilBrown To: Greg Kroah-Hartman Date: Fri, 04 May 2018 14:58:35 +1000 Subject: [PATCH 1/8] staging: mt7621-eth: Lock is never unlocked. Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Message-ID: <152540991585.12190.1091705512182182698.stgit@noble> In-Reply-To: <152540982998.12190.15220622955317261586.stgit@noble> References: <152540982998.12190.15220622955317261586.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mtk_phy_link_adjust takes a spinlock and disables interrupts, but never unlocks. This can leave interrupts disabled on one CPU and various things stop working. Signed-off-by: NeilBrown --- drivers/staging/mt7621-eth/mdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/mt7621-eth/mdio.c b/drivers/staging/mt7621-eth/mdio.c index 9d713078ef90..c6db11aad9e4 100644 --- a/drivers/staging/mt7621-eth/mdio.c +++ b/drivers/staging/mt7621-eth/mdio.c @@ -57,6 +57,7 @@ static void mtk_phy_link_adjust(struct net_device *dev) } } } + spin_unlock_irqrestore(ð->phy->lock, flags); } int mtk_connect_phy_node(struct mtk_eth *eth, struct mtk_mac *mac,