summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2010-12-24 19:56:28 +0100
committerMatthew Garrett <mjg@redhat.com>2011-01-07 17:26:25 -0500
commit213658516fd5e125eb7a97995f6cae8996f8015b (patch)
tree319178f8486e0e63cea3383afed3a24ab1271bfc /drivers/platform
parent466449cfe797b8a5d82d25d0e0e08426d8dfba19 (diff)
downloadtalos-obmc-linux-213658516fd5e125eb7a97995f6cae8996f8015b.tar.gz
talos-obmc-linux-213658516fd5e125eb7a97995f6cae8996f8015b.zip
ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf()
Hi, In drivers/platform/x86/thinkpad_acpi.c::acpi_evalf() we don't always call va_end() after va_start(). This patch corrects that. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index f372dc7ae14e..a974ca383cb9 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -589,6 +589,7 @@ static int acpi_evalf(acpi_handle handle,
default:
printk(TPACPI_ERR "acpi_evalf() called "
"with invalid format character '%c'\n", c);
+ va_end(ap);
return 0;
}
}
OpenPOWER on IntegriCloud