diff options
author | Felix Held <felix.held@amd.corp-partner.google.com> | 2020-04-19 00:02:01 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-04-20 06:43:36 +0000 |
commit | 1b457f851795a2bae402a0c1e9e190cb5c6add20 (patch) | |
tree | 36d5fdbc366151e2581f6205ec8dff9d6904c698 /src/soc/amd/stoneyridge | |
parent | 4ec683d0776c50af3d93d158235b834f5d65b579 (diff) |
soc/amd/stoneyridge/memmap: fix bug in bert_reserved_region
Changing the local pointer "start" has no effect.
Changing the value it points to has.
Change-Id: I1b689896fcf255b795b27d7a7163849d6dfdb00e
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40506
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r-- | src/soc/amd/stoneyridge/memmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/memmap.c b/src/soc/amd/stoneyridge/memmap.c index 0c8d9c0cdf..34ddcb33c9 100644 --- a/src/soc/amd/stoneyridge/memmap.c +++ b/src/soc/amd/stoneyridge/memmap.c @@ -32,7 +32,7 @@ void bert_reserved_region(void **start, size_t *size) if (CONFIG(ACPI_BERT)) *start = cbmem_top(); else - start = NULL; + *start = NULL; *size = BERT_REGION_MAX_SIZE; } |