Bug 2622 - panic after kfree(ec_ecdt) in acpi_ec_add()
Summary: panic after kfree(ec_ecdt) in acpi_ec_add()
Status: REJECTED DUPLICATE of bug 2515
Alias: None
Product: ACPI
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: acpi_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 15:15 UTC by Wilfried Klaebe
Modified: 2004-05-12 19:26 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.6-rc3
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

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 ***

Note You need to log in before you can comment on or make changes to this bug.