summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Network/Ip4Dxe
diff options
context:
space:
mode:
authorJiaxin Wu <jiaxin.wu@intel.com>2017-04-14 09:44:50 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2017-04-21 13:04:24 +0800
commitad18ec95437e6947ba4190f2b281659999db880b (patch)
tree3234130374e6e7f5645e6fe76b16ea60c34fb285 /MdeModulePkg/Universal/Network/Ip4Dxe
parent6893b16fb9f8afef71ae4e9e3dead6bb685f6994 (diff)
downloadedk2-ad18ec95437e6947ba4190f2b281659999db880b.tar.gz
edk2-ad18ec95437e6947ba4190f2b281659999db880b.tar.bz2
edk2-ad18ec95437e6947ba4190f2b281659999db880b.zip
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>
Diffstat (limited to 'MdeModulePkg/Universal/Network/Ip4Dxe')
-rw-r--r--MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
index 7512a00f4b..d29d87372e 100644
--- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
+++ b/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;
}