2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-11 13:57:52 +00:00

dpif-netdev: Fix segfault handling packets.

Reported-by: Hassan Khan <hassan.khan@seecs.edu.pk>
This commit is contained in:
Ben Pfaff
2011-02-15 10:07:20 -08:00
parent 92dbd5c9e3
commit ed4031e467
2 changed files with 2 additions and 1 deletions

View 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;
}