Received: by 10.213.65.68 with SMTP id h4csp469936imn; Fri, 16 Mar 2018 08:43:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELscIjpsrlmw3cBvvoK9vah/Rlex7tmELQ/X20wDTGb1GIZI0T0aQmV16ZQ+pqrsCT8fPgXc X-Received: by 2002:a17:902:9009:: with SMTP id a9-v6mr2590689plp.272.1521215010996; Fri, 16 Mar 2018 08:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215010; cv=none; d=google.com; s=arc-20160816; b=pxY+8xW60TVV9muQde5uf208IPeBtvKSQhvv+VsdjgrXyq5Apu5kMHsg1TY2bpcyh0 v6s7vgfHtcTF/IMhiFZuvjIGrRWPm9n/gEWWjFMWBq/eAQ3AsvluwK4ilunQSbv1uzyE NZV51Pf7D5KxuzrA1xUwCaNg8Dk2kodzFc+YZGPtpozuM0O4ogf0fharMqHJd4qd5DbJ YcagOhVVMBJUb0IFfbGwsyEropWl56fvtqc5JuoymhQYaSVq3u5wOOTkQUd3P+HTBlJD K+Rs9NcvcmXUuCAXv5rGsvGMrdHsIPNor2wf5DzGJmPmveztc0Ln4iuxamBFqttPsvUJ TjqA== 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=uHf5EvIm4RhexKjmXexFMe4tBS0NU6dDgxX/AKZbcug=; b=uR7S98rgxgV0W6ZbLr9VYt14qpZX3p8dn/kpeNeNCCIoKEAxsF+1hyxXG/+UXQad3X 5BjZ0YiSA4mojWlHLcfGotvLcVdsuoxeJiLUMtLoTek/7OsNyivYA7OsFEw6nfHnOrmC 6zqKRxyXOau2kaZYi6T3wsEBozefoUKz/GvMMLeDzbZO9PMvW0FufFFir1H8gH6oiUG1 Zfgsp4BuNYGRSsHFItGjiiAONsBiSPTeXErpCMazAxEdJZc1xjDHW+0/c38DZ2TCl+ET 4KC0aMNa7E7tN1x1kOgMMJGqYiWBok/J52wIriam8pn1d9bnb9q1Aks506LiMGbP+rIE Vg6A== 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 p66si4864781pfk.100.2018.03.16.08.43.03; Fri, 16 Mar 2018 08:43:30 -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 S965107AbeCPPkt (ORCPT + 99 others); Fri, 16 Mar 2018 11:40:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43722 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965090AbeCPPkj (ORCPT ); Fri, 16 Mar 2018 11:40:39 -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 56393E7A; Fri, 16 Mar 2018 15:40:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Mackerras , Sasha Levin Subject: [PATCH 4.15 035/128] KVM: PPC: Book3S HV: Fix typo in kvmppc_hv_get_dirty_log_radix() Date: Fri, 16 Mar 2018 16:22:56 +0100 Message-Id: <20180316152338.403223417@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul Mackerras [ Upstream commit 117647ff936e2d9684cc881d87c0291f46669c20 ] This fixes a typo where the intent was to assign to 'j' in order to skip some number of bits in the dirty bitmap for a guest. The effect of the typo is benign since it means we just iterate through all the bits rather than skipping bits which we know will be zero. This issue was found by Coverity. Signed-off-by: Paul Mackerras Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kvm/book3s_64_mmu_radix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/kvm/book3s_64_mmu_radix.c +++ b/arch/powerpc/kvm/book3s_64_mmu_radix.c @@ -573,7 +573,7 @@ long kvmppc_hv_get_dirty_log_radix(struc j = i + 1; if (npages) { set_dirty_bits(map, i, npages); - i = j + npages; + j = i + npages; } } return 0;