mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-30 07:39:24 +00:00
Fix Coverity #343017, Missing unlock
All other returns from this function unlock the responses_lock, so we also should release the lock in this case. Change-Id: Ie2cfa8755723fed79e809f9480190d11f373a217 Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
This commit is contained in:
parent
4249e8b94f
commit
fc6b626c6b
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ int spm_response_add(uint16_t client_id, uint16_t handle, uint32_t token,
|
||||||
struct sprt_response *resp = &(responses[i]);
|
struct sprt_response *resp = &(responses[i]);
|
||||||
|
|
||||||
if ((resp->is_valid == 1) && (resp->token == token)) {
|
if ((resp->is_valid == 1) && (resp->token == token)) {
|
||||||
|
spin_unlock(&responses_lock);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue