trusty: add return value test for munmap() calls am: 29464e917d

Original change: https://android-review.googlesource.com/c/trusty/app/confirmationui/+/3239335

Change-Id: Idf8203802b3458f545c589c46d6cd175f4148f19
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/src/main.cpp b/src/main.cpp
index 69ed3b9..a69f228 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -180,7 +180,7 @@
 static int handle_msg(handle_t chan, uint32_t req_len, struct chan_ctx* ctx) {
     int rc;
     uint8_t msg[CONFIRMATIONUI_MAX_MSG_SIZE];
-    uint32_t resp_len = sizeof(msg);
+    uint32_t resp_len = ctx->shm_len;
     struct confirmationui_hdr hdr;
     struct confirmationui_msg_args args;