[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH xenbus 1/8] Remove bogus ASSERTion



From: Paul Durrant <pdurrant@xxxxxxxxxx>

The ASSERT(Index > 0) in DriverQueryId() in XENFILT appears to have started
to fail in Windows 10 2004. It is bogus as it will fail if an underlying
driver passes back an empty buffer from either BusQueryHardwareIDs or
BusQueryCompatibleIDs, yet DriverQueryId() will cope perfectly will in these
circimstances, passing back en empty string to its caller. This patch simply
removes the ASSERT().

Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>
---
 src/xenfilt/driver.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/xenfilt/driver.c b/src/xenfilt/driver.c
index 8f14ec890017..5496a17670d7 100644
--- a/src/xenfilt/driver.c
+++ b/src/xenfilt/driver.c
@@ -579,7 +579,6 @@ DriverQueryId(
 
             Index += Length + 1;
         }
-        ASSERT(Index > 0);
 
         Size = (Index + 1) * sizeof (CHAR);
 
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.