aboutsummaryrefslogtreecommitdiffstats
path: root/src/coreboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreboot.c')
-rw-r--r--src/coreboot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/coreboot.c b/src/coreboot.c
index 5d9a101a..db0063be 100644
--- a/src/coreboot.c
+++ b/src/coreboot.c
@@ -510,11 +510,10 @@ cbfs_copyfile(struct cbfs_file *file, void *dst, u32 maxlen)
void *src = (void*)file + ntohl(file->offset);
if (cbfs_iscomp(file)) {
// Compressed - copy to temp ram and uncompress it.
- u32 asize = ALIGN(size, 4);
- void *temp = malloc_tmphigh(asize);
+ void *temp = malloc_tmphigh(size);
if (!temp)
return -1;
- iomemcpy(temp, src, asize);
+ iomemcpy(temp, src, size);
int ret = ulzma(dst, maxlen, temp, size);
yield();
free(temp);