Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9978817ybi; Wed, 24 Jul 2019 13:26:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZzVCX4bjQk/Ba8wqPLqBvuJYvGMiJNsaGidQlwb9nMdaKMbkvWvIYRruGYqMo3LnBz5pE X-Received: by 2002:a63:2264:: with SMTP id t36mr77386207pgm.87.1563999962770; Wed, 24 Jul 2019 13:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563999962; cv=none; d=google.com; s=arc-20160816; b=j7YScoLcZTShy3cSvgq5TYmWFQazkTplLuQ3FqMUlsQUrvM2FogZlF/y7Lr/0GGMSg ivbBvSVu3u1kD2uGcfP9ciXLMUuhlU/6BPPouM1WaJqgCcxumNsFazBB80WObb75Jft8 lbTeZuGqMVGic1wZChHr++3tqFeUZlI1dQt7dpCEYdX1odFsLkHSqRCKwh0K0+eZBZnQ zpxKTbVKr8oC417lOeO05PeeQ+gBhQgGng6LrRBcR/GP8KBmzUVL939TgApDKVbWFvpU ekHz3ph4Loacyu8niibEDl/VF2hP9d7XxsGysS/hc6i+NXwXZfG3ufqz5IUooY+RTWAk lUbw== 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=6Oo4mdweqsr5OXJf5QuhnKTak+7FPBDV4TpxcwhJiBc=; b=fKtL4mtrm2sP5MbSNG/0/bnKQ9P+p6AW+D5YbBzrynptmFfCXL4Ko+ialDFuz+4oPc xdllmBWajjMVnff8uMT8AJvvHEB1mKWJXt2OcJcS/p9vyJ8ufQL7pQsc/ct3zMRhSUNc 5d92IpsvJ5p+buzhZffcJA99Yx8I2iTcE8ZaJ5aRtS6w+/uIUGj4SDsPaCq1WevBMnE9 crWEOFnojoAX41W7tSAxSAphl4AYrVoVV7xsRJtOyIK7doBnHA08DGAzv7tbOQKiuJum W3EZxIsgBXN0Eltj9/VYUz0hHc87hUYpHGLLyxa4pGRlV8aHRzt+pe2pA2YRx6/8CXYe zuGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b+DHZubz; 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 a6si18302339pjo.91.2019.07.24.13.25.48; Wed, 24 Jul 2019 13:26:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b=b+DHZubz; 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 S2390449AbfGXTm7 (ORCPT + 99 others); Wed, 24 Jul 2019 15:42:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390433AbfGXTm4 (ORCPT ); Wed, 24 Jul 2019 15:42:56 -0400 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 66C0A217D4; Wed, 24 Jul 2019 19:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997375; bh=FkiQiVmbY1YCcI9+LShPsFbYmByYfyJYN8sTYbaSTFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b+DHZubzr7hKuu6mvGLGm5Yke7NpMfo5a/HyBzYeLt6USA8qY3LeSJSz27L2jP/31 2+kk2Ku2dKlrK7vTt2Ho+w3Y+nMiLy4oY1Ws78SYZcy9vTvJHFgQ8WOuHP+K8AR9tG YSyX0D1jlTzRnWIFaOAFgBxuxm6ojz9pGfEdzAf4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andreas Schwab , Christophe Leroy , Michael Ellerman Subject: [PATCH 5.2 388/413] powerpc/mm/32s: fix condition that is always true Date: Wed, 24 Jul 2019 21:21:19 +0200 Message-Id: <20190724191802.702846710@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@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: Andreas Schwab commit 46c2478af610efb3212b8b08f74389d69899ef70 upstream. Move a misplaced paren that makes the condition always true. Fixes: 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX") Cc: stable@vger.kernel.org # v5.1+ Signed-off-by: Andreas Schwab Reviewed-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/mm/pgtable_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -360,7 +360,7 @@ void mark_initmem_nx(void) unsigned long numpages = PFN_UP((unsigned long)_einittext) - PFN_DOWN((unsigned long)_sinittext); - if (v_block_mapped((unsigned long)_stext) + 1) + if (v_block_mapped((unsigned long)_stext + 1)) mmu_mark_initmem_nx(); else change_page_attr(page, numpages, PAGE_KERNEL);