diff options
-rw-r--r-- | arch/s390/kvm/priv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index 572496c688cc..0714bfa56da0 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c | |||
@@ -1006,7 +1006,7 @@ static inline int do_essa(struct kvm_vcpu *vcpu, const int orc) | |||
1006 | cbrlo[entries] = gfn << PAGE_SHIFT; | 1006 | cbrlo[entries] = gfn << PAGE_SHIFT; |
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | if (orc) { | 1009 | if (orc && gfn < ms->bitmap_size) { |
1010 | /* increment only if we are really flipping the bit to 1 */ | 1010 | /* increment only if we are really flipping the bit to 1 */ |
1011 | if (!test_and_set_bit(gfn, ms->pgste_bitmap)) | 1011 | if (!test_and_set_bit(gfn, ms->pgste_bitmap)) |
1012 | atomic64_inc(&ms->dirty_pages); | 1012 | atomic64_inc(&ms->dirty_pages); |