Skip to contentSkip to conversation

net: netmap_poll must update both read/write poll state

PATCH New Stefan Hajnoczi 1 participant 1 message Mar 26, 2014 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: netmap_poll must update both read/write poll state

From: Prasad Joshi <[email protected]>

---
 net/netmap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/netmap.c +2 -2
index 8213304..0c1772b 100644
@@ -177,8 +177,8 @@ static void netmap_poll(NetClientState *nc, bool enable)
     NetmapState *s = DO_UPCAST(NetmapState, nc, nc);
 
     if (s->read_poll != enable || s->write_poll != enable) {
-        s->read_poll = enable;
-        s->read_poll = enable;
+        s->write_poll = enable;
+        s->read_poll  = enable;
         netmap_update_fd_handler(s);
     }
 }
Signature · 1 line
1.8.5.3