Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354998
b: refs/heads/master
c: 5ab0595
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent 186d786 commit 77bc0ca
Show file tree
Hide file tree
Showing 2 changed files with 7 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: b0209501dc7586cbfbf6d023f2dd3ce4621aff2c
refs/heads/master: 5ab05951c586a2ed9e19a3ed8c437346bfabbfb7
10 changes: 6 additions & 4 deletions trunk/drivers/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
union hv_synic_event_flags *event;
bool handled = false;

page_addr = hv_context.synic_event_page[cpu];
if (page_addr == NULL)
return IRQ_NONE;

event = (union hv_synic_event_flags *)page_addr +
VMBUS_MESSAGE_SINT;
/*
* Check for events before checking for messages. This is the order
* in which events and messages are checked in Windows guests on
Expand All @@ -463,10 +469,6 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
if ((vmbus_proto_version == VERSION_WS2008) ||
(vmbus_proto_version == VERSION_WIN7)) {

page_addr = hv_context.synic_event_page[cpu];
event = (union hv_synic_event_flags *)page_addr +
VMBUS_MESSAGE_SINT;

/* Since we are a child, we only need to check bit 0 */
if (sync_test_and_clear_bit(0,
(unsigned long *) &event->flags32[0])) {
Expand Down

0 comments on commit 77bc0ca

Please sign in to comment.