From: xypron.glpk@gmx.de Date: Sat, 15 Apr 2017 10:29:20 +0000 (+0200) Subject: arm: omap-common: add missing va_end() X-Git-Tag: v2017.05-rc3~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ecd2a2f0600e61f2edff4fc3dce76f0f6559b67;p=platform%2Fkernel%2Fu-boot.git arm: omap-common: add missing va_end() Each call of va_start must be matched by a call of va_end. Signed-off-by: Heinrich Schuchardt Reviewed-by: Tom Rini --- diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c index 0fa8db0..ec1ffa5 100644 --- 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++)