]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(rss): clear the message buffer
authorTamas Ban <tamas.ban@arm.com>
Fri, 16 Sep 2022 11:42:29 +0000 (13:42 +0200)
committerTamas Ban <tamas.ban@arm.com>
Fri, 7 Oct 2022 09:32:48 +0000 (11:32 +0200)
Clear the MHU message buffer to remove assets from memory.

Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I730e7b044eaf0bf517532a12146e4f542949544e

drivers/arm/rss/rss_comms.c

index 8b5002f29ae185de0c3ea963837fd89f6f4a8290..5e224e1e56b8e6b5af5811820ff92d2849c9eef3 100644 (file)
@@ -142,6 +142,9 @@ psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec
                VERBOSE("out_vec[%lu].buf=%p\n", idx, (void *)out_vec[idx].base);
        }
 
+       /* Clear the MHU message buffer to remove assets from memory */
+       memset(&io_buf, 0x0, sizeof(io_buf));
+
        seq_num++;
 
        return return_val;