mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
6893b16fb9
commit
ad18ec9543
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue