[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC PATCH 3/6] __CaptureUserBuffer(): zero CapturedBuffer on failure in all cases
Signed-off-by: Rafał Wojdyła <omeg@xxxxxxxxxxxxxxxxxxxxxx> --- src/xeniface/ioctls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xeniface/ioctls.c b/src/xeniface/ioctls.c index 6298fef..479f0f6 100644 --- a/src/xeniface/ioctls.c +++ b/src/xeniface/ioctls.c @@ -56,8 +56,10 @@ __CaptureUserBuffer( Status = STATUS_NO_MEMORY; TempBuffer = __AllocatePoolWithTag(NonPagedPool, Length, XENIFACE_POOL_TAG); - if (TempBuffer == NULL) + if (TempBuffer == NULL) { + *CapturedBuffer = NULL; return STATUS_INSUFFICIENT_RESOURCES; + } Status = STATUS_SUCCESS; -- 2.40.1.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |