mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
qcomtee_object_user_init() is a variadic function and when the function
return because there's no dispatch callback in QCOMTEE_OBJECT_TYPE_CB
case, there's no va_end to cleanup "ap" object initialized by va_start
and that can cause undefined behavior. So make sure to use va_end before
returning the error code when there's no dispatch callback.
This is reported by Coverity Scan as "Missing varargs init or cleanup".
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| async.c | ||
| call.c | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| mem_obj.c | ||
| primordial_obj.c | ||
| qcomtee.h | ||
| qcomtee_msg.h | ||
| qcomtee_object.h | ||
| shm.c | ||
| user_obj.c | ||