mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
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:
parent
ac568b2bcc
commit
cee8bb3b38
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue