aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-21 13:34:21 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-03-02 10:36:46 +0100
commit33199bef6edf92f7825d1f94ad7b36c50e30e80b (patch)
tree3e7259617eb3664e683e7e8381b700d0cb9f82d9
parent104c221f4a30be0245fcf6a4f0237d8ed8f4ed23 (diff)
downloadhardware_replicant_libsamsung-ipc-patches-todo/endianess.tar.gz
hardware_replicant_libsamsung-ipc-patches-todo/endianess.tar.bz2
hardware_replicant_libsamsung-ipc-patches-todo/endianess.zip
[WIP] libsamsung-ipc.so: handle endianesspatches-todo/endianess
TODO: - Identify all the fields > 1 byte and handle endianess - Identify all the code that access the data directly Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/ipc_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/ipc_utils.c b/samsung-ipc/ipc_utils.c
index 3518475..7dba1a9 100644
--- a/samsung-ipc/ipc_utils.c
+++ b/samsung-ipc/ipc_utils.c
@@ -298,7 +298,7 @@ int ipc_fmt_header_setup(struct ipc_fmt_header *header,
return -1;
memset(header, 0, sizeof(struct ipc_fmt_header));
- header->length = message->size + sizeof(struct ipc_fmt_header);
+ header->length = letoh16(message->size + sizeof(struct ipc_fmt_header));
header->mseq = message->mseq;
header->aseq = message->aseq;
header->group = IPC_GROUP(message->command);