[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH 02/15] Fix FIFO ABI Ack and Mask methods



Both methods were using the wrong event word by using the port number as an
offset twice.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenbus/evtchn_fifo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xenbus/evtchn_fifo.c b/src/xenbus/evtchn_fifo.c
index cef639d..f44f3fc 100644
--- a/src/xenbus/evtchn_fifo.c
+++ b/src/xenbus/evtchn_fifo.c
@@ -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
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.