]> xenbits.xensource.com Git - pvdrivers/win/xennet.git/commit
Avoid ASSERTion failure caused by sample ordering reversal 8.2.0-rc1
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 4 Nov 2016 16:02:07 +0000 (16:02 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 4 Nov 2016 16:02:07 +0000 (16:02 +0000)
commit29cf4297de51bed016dd5fe1b65766b4dc422dc5
tree7c82486242220708860cde84c4ba3f0855d32674
parent56ec13cd9ccccbf65e57ada0c8fd9e2a4ad73225
Avoid ASSERTion failure caused by sample ordering reversal

In __ReceiverPushPackets() the value of Receiver->Indicated is sampled
prior to the value of Receiver->Returned. This allows packets to be
indicated and returned on other CPUs between the two sample points
leading to an ASSERTion failure because the value of Returned will be
greater than that of Indicated.

The solution is simply to reverse the sample ordering.

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