commit | 952970d6cbafe85c61027bf35a7006952635b8be | [log] [tgz] |
---|---|---|
author | Guðni Már Gilbert <gudni.m.g@gmail.com> | Fri Mar 05 18:35:28 2021 +0000 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Tue Mar 23 12:13:00 2021 +0100 |
tree | d8ff093495130ec06575b64dc70f7429b50d2016 | |
parent | 76f35f29f01e57690576067f301ddf3df74e4815 [diff] |
lib: libc: minimal: add check on returned value Fix #32938 [Coverity CID :219508] "Unchecked return value in lib/libc/minimal/source/stdlib/malloc.c" The Coverity complains about sys_mutex_lock() which returns 0 if locked. I added also the same check on returned value for sys_mutex_unlock() which returns 0 if unlocked. Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>