diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-04-14 09:44:50 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-07-12 11:24:30 +0800 |
commit | 5a8e3a191e750524ca53f82490659cd78e170281 (patch) | |
tree | f8d16ecbff1ade96867cfd384f60d168e5452207 /Core/MdeModulePkg/Universal | |
parent | 679cad8b607f152ac1e216928f31a2eb7eb01562 (diff) | |
download | edk2-platforms-5a8e3a191e750524ca53f82490659cd78e170281.tar.xz |
MdeModulePkg/Ip4Dxe: Fix the incorrect RemoveEntryList
Cc: Subramanian Sriram <sriram-s@hpe.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
(cherry picked from commit ad18ec95437e6947ba4190f2b281659999db880b)
Diffstat (limited to 'Core/MdeModulePkg/Universal')
-rw-r--r-- | Core/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c b/Core/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c index 7512a00f4b..d29d87372e 100644 --- a/Core/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c +++ b/Core/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c @@ -855,7 +855,7 @@ Ip4OnArpResolvedDpc ( Status = Interface->Mnp->Transmit (Interface->Mnp, &Token->MnpToken);
if (EFI_ERROR (Status)) {
- RemoveEntryList (Entry);
+ RemoveEntryList (&Token->Link);
Token->CallBack (Token->IpInstance, Token->Packet, Status, 0, Token->Context);
Ip4FreeLinkTxToken (Token);
@@ -1081,7 +1081,7 @@ SEND_NOW: InsertTailList (&Interface->SentFrames, &Token->Link);
Status = Interface->Mnp->Transmit (Interface->Mnp, &Token->MnpToken);
if (EFI_ERROR (Status)) {
- RemoveEntryList (&Interface->SentFrames);
+ RemoveEntryList (&Token->Link);
goto ON_ERROR;
}
|