Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6021117ybc; Wed, 27 Nov 2019 13:32:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzKeHl/qhE4PeeyfUMOIezx8X4VBVtJqCrlezJ/vFP0wXf6XTcGJQjQ2EDtIw93zSGGKOw2 X-Received: by 2002:aa7:dd13:: with SMTP id i19mr35353539edv.240.1574890351659; Wed, 27 Nov 2019 13:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890351; cv=none; d=google.com; s=arc-20160816; b=oWJ1lAT28EAeZgrc2X3l5DQoRK/2SCEoLNevyqHWAd6Rj5M+pa/b+z8iPxZGndlKyL q9HKQExyR8+ZDUKpHFjSUaCNRwqEO0eTmcQ6OcFwrcn/jxHdwgD/hWG5eb/Shf6xGFhB 3V19XJQ25woOmPR7jYm2ObdoWAQW7kES8NN7JqrNrnv74S2b1jbi0xuVWf+J7Vf2S25e 3i1PfI0eiAPLytfhgQgGFH49xGlVcevPDYLaIG96rfRR9D+vRVQ8Hht0jsnAWllb1AE3 fTJVHz2cwWA2UjD586IA5PUogcri7KBbH9q6SPS9t5Psz7dONYSZ2DjtX2oDjfb59YZR yNkw== 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:date:subject:cc:to :from:dkim-signature; bh=qaJD4IIw8gOft4uWIm1dRw6LUlK7+BYr766UiE/3DO8=; b=UtK7q9NlVKfd205o3JCDPq9nqi1kccj2QCjjRejEdKAiv9Gt6D2bUKz3doOcRQCuV6 /mSKliaqiWztGMPTHA8n4Fll8dbDCTEVU8XCghp+4yapxwxjdeKZU8hAybYyPZaMR1Ls fCkbdnlEEUnq1ymd5irL+40jQJLowDDSYskHp+TcPxznSiEmY+uCUgmczINSq1JR9E7T LjAmEe+UJBtzY4JSYKETA/DM9esyhQNOAwIsjmkD1Dy45E20FyxLsJyQn3/42ckgHsPh tNuo5vqVYOu1S4a1u6WcrV4c6IpHiUYLW60gRbP4utjPqopojdeRCKktugboA0lsc7ON 9cvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZzmSTblf; 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 n19si3706405edb.312.2019.11.27.13.32.08; Wed, 27 Nov 2019 13:32:31 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ZzmSTblf; 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 S1731050AbfK0U40 (ORCPT + 99 others); Wed, 27 Nov 2019 15:56:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:47210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731046AbfK0U4Y (ORCPT ); Wed, 27 Nov 2019 15:56:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 929F820862; Wed, 27 Nov 2019 20:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888183; bh=wyyl9s9xZv7JFxye6DTH7V7QfW8oBgfEhI9UUGwxt0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZzmSTblfv1VgGE+TFX90+iEt+xqfci6GuMl20NtRx3Fi4bOfRYPCUPT6avy4A3sQZ JV5BMMtScuHfMSWgbBRUgTjn/nowtZg37WNUo/8RDPpbdiiY7vXujfje1Ri21gjVkj C33D8vSgru/zVDPCsX8UYS7q68LCZ9vMNWlW7ktI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sam Bobroff , Michael Ellerman , Sasha Levin Subject: [PATCH 4.19 035/306] powerpc/eeh: Fix use of EEH_PE_KEEP on wrong field Date: Wed, 27 Nov 2019 21:28:05 +0100 Message-Id: <20191127203117.379300257@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sam Bobroff [ Upstream commit 473af09b56dc4be68e4af33220ceca6be67aa60d ] eeh_add_to_parent_pe() sometimes removes the EEH_PE_KEEP flag, but it incorrectly removes it from pe->type, instead of pe->state. However, rather than clearing it from the correct field, remove it. Inspection of the code shows that it can't ever have had any effect (even if it had been cleared from the correct field), because the field is never tested after it is cleared by the statement in question. The clear statement was added by commit 807a827d4e74 ("powerpc/eeh: Keep PE during hotplug"), but it didn't explain why it was necessary. Signed-off-by: Sam Bobroff Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/eeh_pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/eeh_pe.c b/arch/powerpc/kernel/eeh_pe.c index 1b238ecc553e2..210d239a93950 100644 --- a/arch/powerpc/kernel/eeh_pe.c +++ b/arch/powerpc/kernel/eeh_pe.c @@ -379,7 +379,7 @@ int eeh_add_to_parent_pe(struct eeh_dev *edev) while (parent) { if (!(parent->type & EEH_PE_INVALID)) break; - parent->type &= ~(EEH_PE_INVALID | EEH_PE_KEEP); + parent->type &= ~EEH_PE_INVALID; parent = parent->parent; } -- 2.20.1