Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118842
b: refs/heads/master
c: e17d1dc
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Nov 11, 2008
1 parent 1d1cf84 commit 432de97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: c60ff51eb26dfcfb0bdc807b09a096aeadd01325
refs/heads/master: e17d1dc0863767bab8fde4ba9be92c7f79e7fe50
4 changes: 3 additions & 1 deletion trunk/arch/x86/kvm/i8254.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,10 @@ struct kvm_pit *kvm_create_pit(struct kvm *kvm)
mutex_lock(&kvm->lock);
pit->irq_source_id = kvm_request_irq_source_id(kvm);
mutex_unlock(&kvm->lock);
if (pit->irq_source_id < 0)
if (pit->irq_source_id < 0) {
kfree(pit);
return NULL;
}

mutex_init(&pit->pit_state.lock);
mutex_lock(&pit->pit_state.lock);
Expand Down

0 comments on commit 432de97

Please sign in to comment.