* [PATCH] ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf()
@ 2010-12-24 18:56 Jesper Juhl
2010-12-26 1:03 ` Henrique de Moraes Holschuh
2011-01-07 22:27 ` Matthew Garrett
0 siblings, 2 replies; 3+ messages in thread
From: Jesper Juhl @ 2010-12-24 18:56 UTC (permalink / raw)
To: ibm-acpi-devel
Cc: Borislav Deianov, Henrique de Moraes Holschuh,
Henrique de Moraes Holschuh, Matthew Garrett, platform-driver-x86,
linux-kernel
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>
---
thinkpad_acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index e8c2199..d053c0e 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;
}
}
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf()
2010-12-24 18:56 [PATCH] ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf() Jesper Juhl
@ 2010-12-26 1:03 ` Henrique de Moraes Holschuh
2011-01-07 22:27 ` Matthew Garrett
1 sibling, 0 replies; 3+ messages in thread
From: Henrique de Moraes Holschuh @ 2010-12-26 1:03 UTC (permalink / raw)
To: Jesper Juhl
Cc: ibm-acpi-devel, Henrique de Moraes Holschuh, Matthew Garrett,
platform-driver-x86, linux-kernel
On Fri, 24 Dec 2010, Jesper Juhl wrote:
> In drivers/platform/x86/thinkpad_acpi.c::acpi_evalf() we don't always call
> va_end() after va_start(). This patch corrects that.
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Although that codepath is for a driver source bug, so arguably it would
be better to just BUG().
It has never been tested (or hit in practice), I think.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf()
2010-12-24 18:56 [PATCH] ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf() Jesper Juhl
2010-12-26 1:03 ` Henrique de Moraes Holschuh
@ 2011-01-07 22:27 ` Matthew Garrett
1 sibling, 0 replies; 3+ messages in thread
From: Matthew Garrett @ 2011-01-07 22:27 UTC (permalink / raw)
To: Jesper Juhl
Cc: ibm-acpi-devel, Borislav Deianov, Henrique de Moraes Holschuh,
Henrique de Moraes Holschuh, platform-driver-x86, linux-kernel
Applied, thanks.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-07 22:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-24 18:56 [PATCH] ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf() Jesper Juhl
2010-12-26 1:03 ` Henrique de Moraes Holschuh
2011-01-07 22:27 ` Matthew Garrett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox