mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
NetworkPkg/DpcDxe: Stop adding entries on allocation failure
DpcQueueDpc() expands the DPC entry free list when it is empty. If an allocation fails after at least one entry has already been added to the free list, the current code continues and inserts the failed allocation result into the list. Stop expanding the free list when an allocation fails and the free list already contains entries. The caller can then continue with one of the entries that was successfully allocated. Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
This commit is contained in:
parent
c83db74426
commit
845daa9f12
1 changed files with 2 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ DpcQueueDpc (
|
|||
ReturnStatus = EFI_OUT_OF_RESOURCES;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue