* [PATCH 1/4] acer-wmi: double free in acer_rfkill_exit()
2009-02-14 9:53 [PATCH 0/4] WMI patches for 2.6.29-rc5 Carlos Corbacho
@ 2009-02-14 9:53 ` Carlos Corbacho
2009-02-14 9:53 ` [PATCH 2/4] ACPI: WMI: Unmark as 'experimental' Carlos Corbacho
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Carlos Corbacho @ 2009-02-14 9:53 UTC (permalink / raw)
To: linux-acpi
From: Dan Carpenter <error27@gmail.com>
This is acer_rfkill_exit() from drivers/platform/x86/acer-wmi.c.
The code frees wireless_rfkill->data again instead of
bluetooth_rfkill->data.
This was found using a code checker (http://repo.or.cz/w/smatch.git/).
Compile tested only, sorry.
regards,
dan carpenter
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
--- orig/drivers/platform/x86/acer-wmi.c 2009-02-03 08:06:54.000000000 +0300
+++ devel/drivers/platform/x86/acer-wmi.c 2009-02-03 08:07:16.000000000 +0300
@@ -1026,7 +1026,7 @@
kfree(wireless_rfkill->data);
rfkill_unregister(wireless_rfkill);
if (has_cap(ACER_CAP_BLUETOOTH)) {
- kfree(wireless_rfkill->data);
+ kfree(bluetooth_rfkill->data);
rfkill_unregister(bluetooth_rfkill);
}
return;
---
0 files changed, 0 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH 2/4] ACPI: WMI: Unmark as 'experimental'
2009-02-14 9:53 [PATCH 0/4] WMI patches for 2.6.29-rc5 Carlos Corbacho
2009-02-14 9:53 ` [PATCH 1/4] acer-wmi: double free in acer_rfkill_exit() Carlos Corbacho
@ 2009-02-14 9:53 ` Carlos Corbacho
2009-02-14 9:53 ` [PATCH 3/4] acer-wmi: " Carlos Corbacho
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Carlos Corbacho @ 2009-02-14 9:53 UTC (permalink / raw)
To: linux-acpi
ACPI-WMI isn't experimental anymore, and there are other drivers that now
depend on it that aren't either.
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
---
drivers/platform/x86/Kconfig | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 9436311..7192f0a 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -313,9 +313,8 @@ config EEEPC_LAPTOP
config ACPI_WMI
- tristate "WMI (EXPERIMENTAL)"
+ tristate "WMI"
depends on ACPI
- depends on EXPERIMENTAL
help
This driver adds support for the ACPI-WMI (Windows Management
Instrumentation) mapper device (PNP0C14) found on some systems.
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 3/4] acer-wmi: Unmark as 'experimental'
2009-02-14 9:53 [PATCH 0/4] WMI patches for 2.6.29-rc5 Carlos Corbacho
2009-02-14 9:53 ` [PATCH 1/4] acer-wmi: double free in acer_rfkill_exit() Carlos Corbacho
2009-02-14 9:53 ` [PATCH 2/4] ACPI: WMI: Unmark as 'experimental' Carlos Corbacho
@ 2009-02-14 9:53 ` Carlos Corbacho
2009-02-14 9:54 ` [PATCH 4/4] acer-wmi: Fix acpi video detection Carlos Corbacho
2009-03-16 2:32 ` [PATCH 0/4] WMI patches for 2.6.29-rc5 Len Brown
4 siblings, 0 replies; 6+ messages in thread
From: Carlos Corbacho @ 2009-02-14 9:53 UTC (permalink / raw)
To: linux-acpi
This driver has been around and used long enough that we can drop the
'experimental'.
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
---
drivers/platform/x86/Kconfig | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 7192f0a..92a529c 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -15,8 +15,7 @@ menuconfig X86_PLATFORM_DEVICES
if X86_PLATFORM_DEVICES
config ACER_WMI
- tristate "Acer WMI Laptop Extras (EXPERIMENTAL)"
- depends on EXPERIMENTAL
+ tristate "Acer WMI Laptop Extras"
depends on ACPI
depends on LEDS_CLASS
depends on NEW_LEDS
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 4/4] acer-wmi: Fix acpi video detection
2009-02-14 9:53 [PATCH 0/4] WMI patches for 2.6.29-rc5 Carlos Corbacho
` (2 preceding siblings ...)
2009-02-14 9:53 ` [PATCH 3/4] acer-wmi: " Carlos Corbacho
@ 2009-02-14 9:54 ` Carlos Corbacho
2009-03-16 2:32 ` [PATCH 0/4] WMI patches for 2.6.29-rc5 Len Brown
4 siblings, 0 replies; 6+ messages in thread
From: Carlos Corbacho @ 2009-02-14 9:54 UTC (permalink / raw)
To: linux-acpi
From: Robert Jarzmik <rjarzmik@free.fr>
Acer WMI video driver can be used if _no_ acpi video
driver is found, not the opposite.
Signed-off-by: Robert Jarzmik <rjarzmik@free.fr>
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
---
drivers/platform/x86/acer-wmi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 94c9f91..6bcca61 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -1297,7 +1297,7 @@ static int __init acer_wmi_init(void)
set_quirks();
- if (!acpi_video_backlight_support() && has_cap(ACER_CAP_BRIGHTNESS)) {
+ if (acpi_video_backlight_support() && has_cap(ACER_CAP_BRIGHTNESS)) {
interface->capability &= ~ACER_CAP_BRIGHTNESS;
printk(ACER_INFO "Brightness must be controlled by "
"generic video driver\n");
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 0/4] WMI patches for 2.6.29-rc5
2009-02-14 9:53 [PATCH 0/4] WMI patches for 2.6.29-rc5 Carlos Corbacho
` (3 preceding siblings ...)
2009-02-14 9:54 ` [PATCH 4/4] acer-wmi: Fix acpi video detection Carlos Corbacho
@ 2009-03-16 2:32 ` Len Brown
4 siblings, 0 replies; 6+ messages in thread
From: Len Brown @ 2009-03-16 2:32 UTC (permalink / raw)
To: Carlos Corbacho; +Cc: linux-acpi
> The following are a set of trivial patches for 2.6.29-rc5 for ACPI-WMI and
> acer-wmi. The last patch in this series you may already have picked up,
> but is reposted here for completeness sake.
>
> -Carlos
> ---
>
> Carlos Corbacho (2):
> acer-wmi: Unmark as 'experimental'
> ACPI: WMI: Unmark as 'experimental'
>
> Dan Carpenter (1):
> acer-wmi: double free in acer_rfkill_exit()
>
> Robert Jarzmik (1):
> acer-wmi: Fix acpi video detection
>
>
> drivers/platform/x86/Kconfig | 6 ++----
> drivers/platform/x86/acer-wmi.c | 2 +-
> 2 files changed, 3 insertions(+), 5 deletions(-)
1-4 applied.
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread