Commit e400e72f authored by Scott Wood's avatar Scott Wood Committed by Alexander Graf

KVM: PPC: e500: fix allocation size error on g2h_tlb1_map

We were only allocating half the bytes we need, which was made more
obvious by a recent fix to the memset in  clear_tlb1_bitmap().
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Cc: stable@vger.kernel.org
parent 70bddfef
...@@ -1385,7 +1385,7 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500) ...@@ -1385,7 +1385,7 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
if (!vcpu_e500->gtlb_priv[1]) if (!vcpu_e500->gtlb_priv[1])
goto err; goto err;
vcpu_e500->g2h_tlb1_map = kzalloc(sizeof(unsigned int) * vcpu_e500->g2h_tlb1_map = kzalloc(sizeof(u64) *
vcpu_e500->gtlb_params[1].entries, vcpu_e500->gtlb_params[1].entries,
GFP_KERNEL); GFP_KERNEL);
if (!vcpu_e500->g2h_tlb1_map) if (!vcpu_e500->g2h_tlb1_map)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment