Received: by 10.213.65.68 with SMTP id h4csp678760imn; Fri, 6 Apr 2018 07:11:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/RCYwl8xxOsCxTah8EzREx+80dzQKvMD/v3544Ja7+Liocoh20q4UF/STnCV9MTl7iHm0D X-Received: by 10.101.90.203 with SMTP id d11mr17670157pgt.20.1523023906978; Fri, 06 Apr 2018 07:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523023906; cv=none; d=google.com; s=arc-20160816; b=Ge3QpU74e5b9OgkJd2gGPQAPjPk2bKCNLrS8eUydRY9bzSAGjnqTWnh/mTnsOtqdyw 1BBLIm2qbkAGYQuzkdgDlCiGGqGhs+Z9I2YLoGJWDRIoURNyIN03V1bWugBUGmv9Kkw8 PPZc2zypBqvl5zFdvFSufUIt2DlW6mzXwXYR4EAV1D8cZQj19n2WFfXD5oeCj9SRI30/ uIKVldRqowd8IPfmDBElIfjcvOzZFKVGog3ELNNa80Q5VItEdmi9+eKZYTpeInHyRazL ggXPOsTiLDpOw98DbRMDhrXONNcgTWYLPmNq6O0cPKoJ//piHLjEqS2KWZnDE7+Mr2M3 xSNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2CNvXDI367Ke9O0XVDY7VGTWjDSP30W19g64zELI4DU=; b=BJxgd6LRi+zQxXId3iSevX2xL1OmuQyF/Pe6LPDDNCYMtPvZktV2B6KCb7VluU7NvH 7vO8DqDo2ILz098F9TLDk13Sv8VSa3QeMccNoIhQcqD7xOw5iZJZVCUhUr9E6EgA6OCM /7/nRo4UpxMDuSgYHj3FUs1aF7bXiR0G7kdV/TBg6buk/2BtOcGSEUuy0AptWC8Cciwy K9z7nFRuqjW1JI189ATquOl+rNbeNrLLaIAq/z332+vdEZ32+GVfpfBDs5a9NcCCCyrN 0OC6ZdXILHktexDJLn0kYbQrSHA2gs/7P2WaO/gZ308tvKkNFO84R088r+pYHgfxPPBC 3ZgQ== 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 n18-v6si7139470plp.526.2018.04.06.07.11.32; Fri, 06 Apr 2018 07:11:46 -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 S1753014AbeDFNk3 (ORCPT + 99 others); Fri, 6 Apr 2018 09:40:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35812 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756297AbeDFNk0 (ORCPT ); Fri, 6 Apr 2018 09:40:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CA49AD4B; Fri, 6 Apr 2018 13:40:18 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Hutchings , "Rafael J. Wysocki" , Viresh Kumar , Sasha Levin Subject: [PATCH 4.14 66/67] Revert "cpufreq: Fix governor module removal race" Date: Fri, 6 Apr 2018 15:24:36 +0200 Message-Id: <20180406084348.875487593@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084341.225558262@linuxfoundation.org> References: <20180406084341.225558262@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Kroah-Hartman This reverts commit 0049457bfde661cf47410eaacad65845c9a2bb45 which was commit a8b149d32b663c1a4105273295184b78f53d33cf upstream. The backport was not correct, so just drop it entirely. Reported-by: Ben Hutchings Cc: Rafael J. Wysocki Cc: Viresh Kumar Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/cpufreq.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -631,8 +631,6 @@ static int cpufreq_parse_governor(char * *governor = t; err = 0; } - if (t && !try_module_get(t->owner)) - t = NULL; mutex_unlock(&cpufreq_governor_mutex); } @@ -761,10 +759,6 @@ static ssize_t store_scaling_governor(st return -EINVAL; ret = cpufreq_set_policy(policy, &new_policy); - - if (new_policy.governor) - module_put(new_policy.governor->owner); - return ret ? ret : count; }