/** @file\r
Main file for Dmem shell Debug1 function.\r
\r
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR> \r
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> \r
This program and the accompanying materials\r
return (SHELL_NOT_FOUND);\r
}\r
Buffer = AllocateZeroPool(Size);\r
- ASSERT(Buffer != NULL);\r
+ if (Buffer == NULL) {\r
+ return SHELL_OUT_OF_RESOURCES;\r
+ }\r
\r
Status = PciRbIo->Mem.Read(PciRbIo, EfiPciWidthUint8, (UINT64)(UINTN)Address, Size, Buffer);\r
if (EFI_ERROR(Status)) {\r