Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298886
b: refs/heads/master
c: b4e5122
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras committed Apr 3, 2012
1 parent 03fd24e commit ebb8282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8e6f8ae511d88732247aa2af26bfd1bef21b2f4
refs/heads/master: b4e51229d8a1e499fe65153766437152cca42053
9 changes: 5 additions & 4 deletions trunk/arch/powerpc/kvm/book3s_hv_builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,22 @@ static void __init kvm_linear_init_one(ulong size, int count, int type)

static struct kvmppc_linear_info *kvm_alloc_linear(int type)
{
struct kvmppc_linear_info *ri;
struct kvmppc_linear_info *ri, *ret;

ri = NULL;
ret = NULL;
spin_lock(&linear_lock);
list_for_each_entry(ri, &free_linears, list) {
if (ri->type != type)
continue;

list_del(&ri->list);
atomic_inc(&ri->use_count);
memset(ri->base_virt, 0, ri->npages << PAGE_SHIFT);
ret = ri;
break;
}
spin_unlock(&linear_lock);
memset(ri->base_virt, 0, ri->npages << PAGE_SHIFT);
return ri;
return ret;
}

static void kvm_release_linear(struct kvmppc_linear_info *ri)
Expand Down

0 comments on commit ebb8282

Please sign in to comment.