fix(el3-spmc): error handling in allocation

Error check must be done on the previously allocated pointer, not a
random one from the code.

Change-Id: I1c8253eacbe778cc4a9a8d71081fc615fa7e5293
Signed-off-by: Lukas Hanel <lukas.hanel@trustonic.com>
This commit is contained in:
vallau01 2022-08-09 18:03:28 +02:00 committed by Lukas Hanel
parent ac568b2bcc
commit cee8bb3b38

View file

@ -1030,7 +1030,7 @@ static long spmc_ffa_fill_desc(struct mailbox *mbox,
v1_1_obj =
spmc_shmem_obj_alloc(&spmc_shmem_obj_state, v1_1_desc_size);
if (!obj) {
if (!v1_1_obj) {
ret = FFA_ERROR_NO_MEMORY;
goto err_arg;
}