mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02: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:
|
||
|---|---|---|
| .. | ||
| async.c | ||
| call.c | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| mem_obj.c | ||
| primordial_obj.c | ||
| qcomtee_msg.h | ||
| qcomtee_object.h | ||
| qcomtee.h | ||
| shm.c | ||
| user_obj.c | ||