diff options
author | Tom Rini <trini@konsulko.com> | 2020-03-23 10:14:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-03-23 10:14:31 -0400 |
commit | 0aadc0786e4a249cddd37efd8875f09e645be4cd (patch) | |
tree | d3cdc126a08f57744dea9275f5c44495adeddf61 /lib/efi_loader/efi_freestanding.c | |
parent | 14eb12a3c801c9b18c91bdce413e44930e008418 (diff) | |
parent | 7a4e717b9c0c255137a58f3ab90f002fc3aade2b (diff) |
Merge tag 'efi-2020-04-rc4-5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-04-rc4 (5)
This series contains bug fixes for the UEFI sub-system:
* report correct variable length in GetNextVariable()
* correct copying direction if freestanding memmove()
* remove const for parameter of GetNextVariableName()
* correct function descriptions
Unit tests are added and adjusted.
Diffstat (limited to 'lib/efi_loader/efi_freestanding.c')
-rw-r--r-- | lib/efi_loader/efi_freestanding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_freestanding.c b/lib/efi_loader/efi_freestanding.c index dcf5d1c49a2..bd0dff162f6 100644 --- a/lib/efi_loader/efi_freestanding.c +++ b/lib/efi_loader/efi_freestanding.c @@ -47,7 +47,7 @@ void *memmove(void *dest, const void *src, size_t n) u8 *d = dest; const u8 *s = src; - if (d >= s) { + if (d <= s) { for (; n; --n) *d++ = *s++; } else { |