dpif-netdev: Fix segfault handling packets.
authorBen Pfaff <blp@nicira.com>
Tue, 15 Feb 2011 18:07:20 +0000 (10:07 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 15 Feb 2011 18:08:15 +0000 (10:08 -0800)
Reported-by: Hassan Khan <hassan.khan@seecs.edu.pk>
AUTHORS
lib/dpif-netdev.c

diff --git a/AUTHORS b/AUTHORS
index c48479fc27732045f5a12996c792ba1310f0cce5..4116ada9bac34c5a2affe3875eee25a81e61dfb4 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -50,6 +50,7 @@ Derek Cormier           derek.cormier@lab.ntt.co.jp
 DK Moon                 dkmoon@nicira.com
 Gaetano Catalli         gaetano.catalli@gmail.com
 Ghanem Bahri            bahri.ghanem@gmail.com
+Hassan Khan             hassan.khan@seecs.edu.pk
 Hector Oron             hector.oron@gmail.com
 Henrik Amren            henrik@nicira.com
 Jad Naous               jnaous@gmail.com
index 93dd1cde99a89d1e36865524dde42d9aced45ec2..035ceaedd414b0a7dce3dbc0f834b6288b8a576c 100644 (file)
@@ -1315,7 +1315,7 @@ dp_netdev_output_control(struct dp_netdev *dp, const struct ofpbuf *packet,
     upcall->key_len = key_len;
     upcall->userdata = arg;
 
-    q->upcalls[++q->head & QUEUE_MASK] = upcall;
+    q->upcalls[q->head++ & QUEUE_MASK] = upcall;
 
     return 0;
 }