mirror of https://github.com/acidanthera/audk.git
Update error handling code if failing attach socket with new PCB in TcpDxe module.
Signed-off-by: tye Reviewed-by: xdu2 Reviewed-by: qouyang git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12590 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e8e5cd4a5e
commit
80ae1cc700
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Interface function of the Socket.
|
||||
|
||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@ -245,6 +245,7 @@ SockCreateChild (
|
|||
// with a new protocol control block
|
||||
//
|
||||
Status = Sock->ProtoHandler (Sock, SOCK_ATTACH, NULL);
|
||||
EfiReleaseLock (&(Sock->Lock));
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
|
@ -257,7 +258,6 @@ SockCreateChild (
|
|||
Sock = NULL;
|
||||
}
|
||||
|
||||
EfiReleaseLock (&(Sock->Lock));
|
||||
return Sock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue