diff options
Diffstat (limited to 'virt/kvm/eventfd.c')
-rw-r--r-- | virt/kvm/eventfd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index b20b751286fc..4325250afd72 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c | |||
@@ -297,7 +297,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) | |||
297 | if (!kvm_arch_intc_initialized(kvm)) | 297 | if (!kvm_arch_intc_initialized(kvm)) |
298 | return -EAGAIN; | 298 | return -EAGAIN; |
299 | 299 | ||
300 | irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL); | 300 | irqfd = kzalloc(sizeof(*irqfd), GFP_KERNEL_ACCOUNT); |
301 | if (!irqfd) | 301 | if (!irqfd) |
302 | return -ENOMEM; | 302 | return -ENOMEM; |
303 | 303 | ||
@@ -345,7 +345,8 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) | |||
345 | } | 345 | } |
346 | 346 | ||
347 | if (!irqfd->resampler) { | 347 | if (!irqfd->resampler) { |
348 | resampler = kzalloc(sizeof(*resampler), GFP_KERNEL); | 348 | resampler = kzalloc(sizeof(*resampler), |
349 | GFP_KERNEL_ACCOUNT); | ||
349 | if (!resampler) { | 350 | if (!resampler) { |
350 | ret = -ENOMEM; | 351 | ret = -ENOMEM; |
351 | mutex_unlock(&kvm->irqfds.resampler_lock); | 352 | mutex_unlock(&kvm->irqfds.resampler_lock); |
@@ -797,7 +798,7 @@ static int kvm_assign_ioeventfd_idx(struct kvm *kvm, | |||
797 | if (IS_ERR(eventfd)) | 798 | if (IS_ERR(eventfd)) |
798 | return PTR_ERR(eventfd); | 799 | return PTR_ERR(eventfd); |
799 | 800 | ||
800 | p = kzalloc(sizeof(*p), GFP_KERNEL); | 801 | p = kzalloc(sizeof(*p), GFP_KERNEL_ACCOUNT); |
801 | if (!p) { | 802 | if (!p) { |
802 | ret = -ENOMEM; | 803 | ret = -ENOMEM; |
803 | goto fail; | 804 | goto fail; |