From a737c67d072f1b40511eb4a81113be781c7c63ec Mon Sep 17 00:00:00 2001
From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Date: Wed, 10 Jan 2018 23:40:02 +0530
Subject: [PATCH 15/26] UBUNTU: SAUCE: rfi-flush: fix package build error
 (unused variable limit)

CVE-2017-5754

Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
 arch/powerpc/kernel/setup_64.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 2f064bc..d9ca1c6 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -775,7 +775,7 @@ void rfi_flush_enable(bool enable)
 
 static bool init_fallback_flush(void)
 {
-	u64 l1d_size, limit;
+	u64 l1d_size;
 	int cpu;
 
 	if (l1d_flush_fallback_area)
@@ -790,7 +790,6 @@ static bool init_fallback_flush(void)
 		return false;
 
 	l1d_size = ppc64_caches.dsize;
-	limit = min(safe_stack_limit(), ppc64_rma_size);
 
 	/*
 	 * We allocate 2x L1d size for the dummy area, to
-- 
2.7.4

