Skip to contentSkip to conversation

WMI patches for 2.6.29-rc5

PATCH In review Carlos Corbacho 2 participants 6 messages Feb 14, 2009 – Mar 16, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover WMI patches for 2.6.29-rc5

Len,

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 lore raw

PATCH 1/4 acer-wmi: double free in acer_rfkill_exit()

From: Dan Carpenter <[email protected]>

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

drivers/platform/x86/acer-wmi.c +1 -1
@@ -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(-)
#2 lore raw

PATCH 2/4 ACPI: WMI: Unmark as 'experimental'

In reply to Carlos Corbacho

ACPI-WMI isn't experimental anymore, and there are other drivers that now depend on it that aren't either.

---

 drivers/platform/x86/Kconfig |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/platform/x86/Kconfig +1 -2
index 9436311..7192f0a 100644
@@ -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.
#3 lore raw

PATCH 3/4 acer-wmi: Unmark as 'experimental'

In reply to Carlos Corbacho

This driver has been around and used long enough that we can drop the 'experimental'.

---

 drivers/platform/x86/Kconfig |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/platform/x86/Kconfig +1 -2
index 7192f0a..92a529c 100644
@@ -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
#4 lore raw

PATCH 4/4 acer-wmi: Fix acpi video detection

In reply to Carlos Corbacho

From: Robert Jarzmik <[email protected]>

Acer WMI video driver can be used if _no_ acpi video driver is found, not the opposite.

---

 drivers/platform/x86/acer-wmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/acer-wmi.c +1 -1
index 94c9f91..6bcca61 100644
@@ -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");
reviewer
#5 lore raw
In reply to Carlos Corbacho
Quoted 15 lines

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()

Quoted 7 lines

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