]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commit
Fix BSOD on RingDestroy
authorOwen Smith <owen.smith@citrix.com>
Wed, 26 Sep 2018 09:47:36 +0000 (10:47 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 26 Sep 2018 09:51:42 +0000 (10:51 +0100)
commit9f7f8b221516c51e23beeda516fe5d37dfb12a6b
tree4dbc1889057edd10ae439e080d42910e5608ad59
parentbde241e6942578e11145cb4af141e3a602068ec6
Fix BSOD on RingDestroy

Zero Frontend->MaxQueues after calling RingDestroy, as RingDestroy will
query this value to free each BlkifRing, which will decrement an
unsigned value below 0.
Also adds an ASSERT to detect if FrontendGetMaxQueues returns 0.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
Test that Index != 0 rather than > 0, since it is an unsigned quantity.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvbd/frontend.c
src/xenvbd/ring.c