提交 1ecd2a2f 编写于 作者: X xypron.glpk@gmx.de 提交者: Tom Rini

arm: omap-common: add missing va_end()

Each call of va_start must be matched by a call of va_end.
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: NTom Rini <trini@konsulko.com>
上级 8399538c
......@@ -39,8 +39,10 @@ u32 secure_rom_call(u32 service, u32 proc_id, u32 flag, ...)
num_args = va_arg(ap, u32);
if (num_args > 4)
if (num_args > 4) {
va_end(ap);
return 1;
}
/* Copy args to aligned args structure */
for (i = 0; i < num_args; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册