From: Jens Freimann Date: Tue, 18 Mar 2014 15:34:18 +0000 (+0100) Subject: KVM: s390: fix calculation of idle_mask array size X-Git-Tag: v3.15-rc1~118^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=609433fbed4f25e11e8b058ab7e9478b212879a9;p=pandora-kernel.git KVM: s390: fix calculation of idle_mask array size We need BITS_TO_LONGS, not sizeof(long) to calculate the correct size. idle_mask is a bitmask, each bit representing the state of a cpu. The desired outcome is an array of unsigned long fields that can fit KVM_MAX_VCPUS bits. We should not use sizeof(long) which returnes the size in bytes, but BITS_TO_LONGS Signed-off-by: Jens Freimann Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed