Reviewed-by: Eric Dong <[email protected]>

> -----Original Message-----
> From: Bi, Dandan
> Sent: Tuesday, March 15, 2016 10:19 AM
> To: [email protected]
> Cc: Gao, Liming; Dong, Eric
> Subject: [patch] 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.
> 
> Cc: Liming Gao <[email protected]>
> Cc: Eric Dong <[email protected]>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Dandan Bi <[email protected]>
> ---
>  MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c 
> b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> index efb78bf..cdb8889 100644
> --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
> @@ -2276,10 +2276,12 @@ DriverSampleUnload (
>    if (DriverHandle[1] != NULL) {
>      gBS->UninstallMultipleProtocolInterfaces (
>              DriverHandle[1],
>              &gEfiDevicePathProtocolGuid,
>              &mHiiVendorDevicePath1,
> +            &gEfiHiiConfigAccessProtocolGuid,
> +            &mPrivateData->ConfigAccess,
>              NULL
>             );
>      DriverHandle[1] = NULL;
>    }
> 
> --
> 1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to