aboutsummaryrefslogtreecommitdiff
path: root/core/opal-msg.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:22:46 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commit789624ffef8b6a90154a120408095333dad0a657 (patch)
tree9bb28e087513de2d62e5ecd4fc498d54868a0d64 /core/opal-msg.c
parent1b9a449d5d48de9520befd09892d85d6aec7ba62 (diff)
downloadskiboot-789624ffef8b6a90154a120408095333dad0a657.zip
skiboot-789624ffef8b6a90154a120408095333dad0a657.tar.gz
skiboot-789624ffef8b6a90154a120408095333dad0a657.tar.bz2
opal-msg: endian fixes for opal-msg.c and opal_queue_msg callers
Reported-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'core/opal-msg.c')
-rw-r--r--core/opal-msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/opal-msg.c b/core/opal-msg.c
index c393be7..dbe75e1 100644
--- a/core/opal-msg.c
+++ b/core/opal-msg.c
@@ -143,7 +143,7 @@ static int64_t opal_check_completion(uint64_t *buffer, uint64_t size,
lock(&opal_msg_lock);
list_for_each_safe(&msg_pending_list, entry, next_entry, link) {
- if (entry->msg.msg_type == OPAL_MSG_ASYNC_COMP &&
+ if (be32_to_cpu(entry->msg.msg_type) == OPAL_MSG_ASYNC_COMP &&
be64_to_cpu(entry->msg.params[0]) == token) {
list_del(&entry->link);
callback = entry->consumed;