Bug 2622

Summary: panic after kfree(ec_ecdt) in acpi_ec_add()
Product: ACPI Reporter: Wilfried Klaebe (linux-kernel)
Component: OtherAssignee: acpi_other
Status: REJECTED DUPLICATE    
Severity: high CC: acpi-bugzilla
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.6-rc3 Subsystem:
Regression: --- Bisected commit-id:

Description Wilfried Klaebe 2004-04-30 15:15:28 UTC
Distribution: debian testing
Hardware Environment: IBM ThinkPad R40 (2722-B3G)
Software Environment:
Problem Description:
While booting, an EC GPE gets queued for execution by acpi_ec_gpe_handler(). 
After that, ec_ecdt is kfree()d in acpi_ec_add(). After that, 
acpi_ec_gpe_query() is called, and given the already kfree()d ec_ecdt as 
parameter. In 2.6.6-rc3 this leads to a panic. In previous versions, this just
rendered some other error in acpi_ec_read().

I for me just commented out that kfree(ec_ecdt); and it doesn't panic anymore, 
but I think there must be some better way.

Steps to reproduce:
compile kernel with acpi, boot
Comment 1 Shaohua 2004-05-07 17:40:32 UTC
Please try the patch in Bug 2515, it should fix the problem.
Comment 2 Len Brown 2004-05-12 19:26:23 UTC

*** This bug has been marked as a duplicate of 2515 ***