diff options
Diffstat (limited to 'virt/kvm/eventfd.c')
-rw-r--r-- | virt/kvm/eventfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 4325250afd72..001aeda4c154 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c | |||
@@ -214,9 +214,9 @@ irqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) | |||
214 | 214 | ||
215 | if (flags & EPOLLHUP) { | 215 | if (flags & EPOLLHUP) { |
216 | /* The eventfd is closing, detach from KVM */ | 216 | /* The eventfd is closing, detach from KVM */ |
217 | unsigned long flags; | 217 | unsigned long iflags; |
218 | 218 | ||
219 | spin_lock_irqsave(&kvm->irqfds.lock, flags); | 219 | spin_lock_irqsave(&kvm->irqfds.lock, iflags); |
220 | 220 | ||
221 | /* | 221 | /* |
222 | * We must check if someone deactivated the irqfd before | 222 | * We must check if someone deactivated the irqfd before |
@@ -230,7 +230,7 @@ irqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) | |||
230 | if (irqfd_is_active(irqfd)) | 230 | if (irqfd_is_active(irqfd)) |
231 | irqfd_deactivate(irqfd); | 231 | irqfd_deactivate(irqfd); |
232 | 232 | ||
233 | spin_unlock_irqrestore(&kvm->irqfds.lock, flags); | 233 | spin_unlock_irqrestore(&kvm->irqfds.lock, iflags); |
234 | } | 234 | } |
235 | 235 | ||
236 | return 0; | 236 | return 0; |