diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-03-15 09:44:16 +0800 |
---|---|---|
committer | Feng Tian <feng.tian@intel.com> | 2016-03-16 10:40:55 +0800 |
commit | 41c244b6b992aa39086ab258f4383c8daf85c3b3 (patch) | |
tree | e75f1d8892276cd4164669bb8e6f1428f8b18f18 | |
parent | 763e8edf610b2ccf422986c81ee36b4733560cdb (diff) | |
download | edk2-platforms-41c244b6b992aa39086ab258f4383c8daf85c3b3.tar.xz |
MdeModulePkg/DriverSampleDxe: Uninstall the ConfigAccess protocol
In DriverSampleInit, has installed the configAccess protocol to
the DriverHandle[1], but don't uninstall it in DriverSampleUnload.
Now uninstall the configAccess protocol.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index efb78bf6be..cdb8889e87 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -2278,6 +2278,8 @@ DriverSampleUnload ( DriverHandle[1],
&gEfiDevicePathProtocolGuid,
&mHiiVendorDevicePath1,
+ &gEfiHiiConfigAccessProtocolGuid,
+ &mPrivateData->ConfigAccess,
NULL
);
DriverHandle[1] = NULL;
|