|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 3/3] xenbus/cache: spill slabs on CacheFill failure to prevent pool leak
Call CacheSpill on the fail path in CacheFill to release any slabs
already allocated before the failure, preventing a NonPagedPool leak.
Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: david ambu <david.preetham@xxxxxxxxxx>
---
src/xenbus/cache.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c
index 90aea08..363bd29 100644
--- a/src/xenbus/cache.c
+++ b/src/xenbus/cache.c
@@ -906,6 +906,8 @@ fail5:
fail4:
Error("fail4\n");
+ CacheSpill(*Cache, 0);
+
fail3:
Error("fail3\n");
--
2.51.0.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |