diff options
author | Abner Chang <abner.chang@amd.com> | 2023-11-23 18:39:23 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-12-05 03:27:03 +0000 |
commit | cf31257ec905f3a18c63a845eb0171774f535022 (patch) | |
tree | 97b66124884c6e47da9fdfdb699f32fa91dad8f1 /RedfishPkg | |
parent | cfafa45002983f686a0c33781ac02e55cf600548 (diff) | |
download | edk2-cf31257ec905f3a18c63a845eb0171774f535022.zip edk2-cf31257ec905f3a18c63a845eb0171774f535022.tar.gz edk2-cf31257ec905f3a18c63a845eb0171774f535022.tar.bz2 |
RedfishPkg/HostInterfaceBmcUsbNic: Correct MAC address reference
MAC address reference is incorrect when it is
copied to Host Interface DeviceDescriptor.
Signed-off-by: Abner Chang <abner.chang@amd.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Mike Maslenkin <mike.maslenkin@gmail.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
Acked-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Diffstat (limited to 'RedfishPkg')
-rw-r--r-- | RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c index e1d0cef..237ad4e 100644 --- a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c +++ b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c @@ -120,7 +120,7 @@ RedfishPlatformHostInterfaceDeviceDescriptor ( InterfaceData->DeviceDescriptor.UsbDeviceV2.SerialNumberStr = 0;
CopyMem (
(VOID *)&InterfaceData->DeviceDescriptor.UsbDeviceV2.MacAddress,
- (VOID *)&ThisInstance->MacAddress,
+ (VOID *)ThisInstance->MacAddress,
sizeof (InterfaceData->DeviceDescriptor.UsbDeviceV2.MacAddress)
);
InterfaceData->DeviceDescriptor.UsbDeviceV2.Characteristics |= (UINT16)ThisInstance->CredentialBootstrapping;
|