|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] Remove ASSERT on CacheGet object allocation failure
When the grant table is exhausted, CacheGetObjectFromSlab can fail and
return NULL. Failing with an assert here prevents the grant exhaustion
from being handled elsewhere.
Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
src/xenbus/cache.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c
index e61033d..e58e2f9 100644
--- a/src/xenbus/cache.c
+++ b/src/xenbus/cache.c
@@ -623,7 +623,6 @@ again:
Slab = CONTAINING_RECORD(ListEntry, XENBUS_CACHE_SLAB, ListEntry);
Object = CacheGetObjectFromSlab(Slab);
- ASSERT(Object != NULL);
//
// If the slab is now fully occupied, ove the cursor on to the next
--
2.53.0.windows.2
--
| Vates
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |