]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Fix FIFO ABI Ack and Mask methods
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 26 Jan 2015 15:45:04 +0000 (15:45 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 27 Jan 2015 16:12:51 +0000 (16:12 +0000)
Both methods were using the wrong event word by using the port number as an
offset twice.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/evtchn_fifo.c

index cef639de71880988bc204bf3c67f4e89b6e91f23..f44f3fcc4700e4a32b9ad8226248bf9907864b9e 100644 (file)
@@ -398,7 +398,7 @@ EvtchnFifoPortAck(
     event_word_t                    *EventWord;
 
     EventWord = EvtchnFifoEventWord(Context, Port);
-    __EvtchnFifoClearFlag(&EventWord[Port], EVTCHN_FIFO_PENDING);
+    __EvtchnFifoClearFlag(EventWord, EVTCHN_FIFO_PENDING);
 }
 
 static VOID
@@ -411,7 +411,7 @@ EvtchnFifoPortMask(
     event_word_t                    *EventWord;
 
     EventWord = EvtchnFifoEventWord(Context, Port);
-    __EvtchnFifoSetFlag(&EventWord[Port], EVTCHN_FIFO_MASKED);
+    __EvtchnFifoSetFlag(EventWord, EVTCHN_FIFO_MASKED);
 }
 
 static BOOLEAN