diff options
author | Laszlo Ersek <lersek@redhat.com> | 2019-09-07 00:50:42 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2019-10-09 09:40:10 +0200 |
commit | 9388c6b1c17af9c8a9f451a42c066b3ae7d81fda (patch) | |
tree | f7641052203db4a8ec49b4400ed5833696a4cf94 /MdeModulePkg/Bus/I2c/I2cDxe | |
parent | 9ee135501b7138126e537adc58352c4126c33fcb (diff) | |
download | edk2-9388c6b1c17af9c8a9f451a42c066b3ae7d81fda.tar.gz edk2-9388c6b1c17af9c8a9f451a42c066b3ae7d81fda.tar.bz2 edk2-9388c6b1c17af9c8a9f451a42c066b3ae7d81fda.zip |
MdeModulePkg: fix UninstallMultipleProtocolInterfaces() calls
Unlike the InstallMultipleProtocolInterfaces() boot service, which takes
an (EFI_HANDLE*) as first parameter, the
UninstallMultipleProtocolInterfaces() boot service takes an EFI_HANDLE as
first parameter.
These are actual bugs. They must have remained hidden until now because
they are on error paths. Fix the UninstallMultipleProtocolInterfaces()
calls.
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus/I2c/I2cDxe')
-rw-r--r-- | MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c b/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c index 2b54ec51dc..ed33a51da2 100644 --- a/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c +++ b/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c @@ -720,7 +720,7 @@ Error: if (I2cBusContext != NULL) {
Status = gBS->UninstallMultipleProtocolInterfaces (
- &Controller,
+ Controller,
gEfiCallerIdGuid,
I2cBusContext,
NULL
|