diff options
author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | 2017-11-14 18:16:51 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2017-11-15 13:14:05 +0100 |
commit | 1e24465fb6950ff4921f75f19dc8b94e78124bc2 (patch) | |
tree | 9450a4407a00cc9c705148e3e27f333286008908 /lib/libutils/isoc/bget_malloc.c | |
parent | 2863328c6bcb08b82f824a08b0fd38608530fd2f (diff) |
optee: use correct type to hold exceptions state
cpu_spin_lock_xsave() returns exceptions state in uin32_t, not
in unsigned int.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'lib/libutils/isoc/bget_malloc.c')
-rw-r--r-- | lib/libutils/isoc/bget_malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutils/isoc/bget_malloc.c b/lib/libutils/isoc/bget_malloc.c index 54a146f4..75fd9905 100644 --- a/lib/libutils/isoc/bget_malloc.c +++ b/lib/libutils/isoc/bget_malloc.c @@ -195,7 +195,7 @@ static void raw_malloc_return_hook(void *p, size_t requested_size) void malloc_reset_stats(void) { - unsigned int exceptions = malloc_lock(); + uint32_t exceptions = malloc_lock(); mstats.max_allocated = 0; mstats.num_alloc_fail = 0; |