"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bloblist: use correct types for physical addresses

It is expected that bloblists are stored in high memory beyond 2 GiB.
We must not use int as data type for these addresses but phys_addr_t.

Fixes: f9ef9fb033d5 ("bloblist: Handle alignment with a void entry")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>

authored by

Heinrich Schuchardt and committed by
Tom Rini
7e2c23ea 5cd1b21b

+2 -1
+2 -1
common/bloblist.c
··· 149 149 { 150 150 struct bloblist_hdr *hdr = gd->bloblist; 151 151 struct bloblist_rec *rec; 152 - int data_start, aligned_start, new_alloced; 152 + phys_addr_t data_start, aligned_start; 153 + phys_size_t new_alloced; 153 154 154 155 if (!align_log2) 155 156 align_log2 = BLOBLIST_BLOB_ALIGN_LOG2;