/** @file\r
The driver binding for VLAN configuration module.\r
\r
-Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
of the BSD License which accompanies this distribution. The full\r
}\r
ASSERT (PrivateData->Signature == VLAN_CONFIG_PRIVATE_DATA_SIGNATURE);\r
\r
- //\r
- // Uninstall VLAN configuration Form\r
- //\r
- UninstallVlanConfigForm (PrivateData);\r
+ if (NumberOfChildren != 0) {\r
+ if (NumberOfChildren != 1 || ChildHandleBuffer[0] != PrivateData->DriverHandle) {\r
+ return EFI_DEVICE_ERROR;\r
+ }\r
+\r
+ return UninstallVlanConfigForm (PrivateData);\r
+ }\r
\r
//\r
// Uninstall the private GUID\r