projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8399538
)
arm: omap-common: add missing va_end()
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Sat, 15 Apr 2017 10:29:20 +0000
(12:29 +0200)
committer
Tom Rini
<trini@konsulko.com>
Tue, 18 Apr 2017 14:29:20 +0000
(10:29 -0400)
Each call of va_start must be matched by a call of va_end.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/sec-common.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/sec-common.c
b/arch/arm/mach-omap2/sec-common.c
index 0fa8db05fe74330dd99865e520ee3987c329b6fd..ec1ffa556ad1c0c3022198104a07c738c8b47884 100644
(file)
--- a/
arch/arm/mach-omap2/sec-common.c
+++ b/
arch/arm/mach-omap2/sec-common.c
@@
-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++)