Message ID | 1447129110-21600-35-git-send-email-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
diff --git a/hw/fsp/fsp-dump.c b/hw/fsp/fsp-dump.c index ae5bfeee0871..b1dd090e23db 100644 --- a/hw/fsp/fsp-dump.c +++ b/hw/fsp/fsp-dump.c @@ -419,7 +419,7 @@ static int64_t validate_dump_sglist(struct opal_sg_list *list, for (i = 0; i < num_entries; i++) { entry = &sg->entry[i]; - *size += entry->length; + *size += be64_to_cpu(entry->length); /* All entries must be aligned */ if (((uint64_t)be64_to_cpu(entry->data)) & 0xfff)
No generated code change for skiboot, as is BE hw/fsp/fsp-dump.c:422:31: warning: invalid assignment: += hw/fsp/fsp-dump.c:422:31: left side has type signed long long hw/fsp/fsp-dump.c:422:31: right side has type restricted beint64_t Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> --- hw/fsp/fsp-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)