forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: libc: minimal: add check on returned value
Fix zephyrproject-rtos#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>
- Loading branch information
1 parent
76f35f2
commit 952970d
Showing
1 changed file
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters